BackHome Page

Telephone: 01327 340 530

The Probitas Blog

Company news, Technical information and a bit of personal stuff

.net 2005 debug problem

by Scott 16. July 2009 11:03

A real techie one here but useful for anyone working with vb.Net 2005 

Application: Microsoft Visual Studion .NET 2005 – Web Application

 

Error Message: ‘"The breakpoint will not currently be hit. The source code is different from the original version"

 

Symptoms:

When running in debug mode I started receiving the following message and debug points were not hit in code that I was modifying. I tried many of the suggestions on the web but eventually resorted to a methodical approach to find a solution. For some reason, changes to .aspx source files were not being compiled into the new .dll. The date and time of the .dll and debug file were updating but the changes were not being included. Debug points in non-modified code would still be hit, the output from the build didn’t list all warnings like it should/used to do.

 

Various things I tried but all to no avail...

 

A)

 1) Closed VS2005
2)
Rebooted
3) Cleared out "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files"
4) Opened V2005 and rebuilt all of the projects individually in the solution. I've also tried it doing a rebuild all.
5) I've also tried reseting my VS2005 environment with "devenv.exe /ResetSettings"
 

B)Deleting the .dll and debug files in the bin directory off the root.

C)Checking debug=true in web.config

D)Checking CopyToOutputDirectory=False on various .aspx files

 

Solution:

 

1. Right click solution in solution explorer

2. Select Clean Build from menu option

3. Check complete solution builds successfully with no error

4. Debug run the solution.

5. Simple!!

 

All working fine now perhaps I can get on with some real work J !!!


Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

NAV Technical

Comments

Add comment


 

  Country flag

biuquote
  • Comment
  • Preview
Loading