views:

105

answers:

2

(A colleague helped me answer this so I will post the question and answer...)

When I try to debug an ASP.NET app, I am getting "The breakpoint will not currently be hit. The source code is different then the original version" and no matter what I do or how many times I build, kill the web server, kill the browser, restart Visual Studio, etc. it keeps giving me that!

+2  A: 

Delete everything under C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

JoelFan
Thank you for making this publicly available. Many people will definetely benefit from this.
bogertron
+1  A: 

I had the same problem with VS 2008 and an asp.net/C# web app, but deleting the \Temporary ASP.NET Files folder would not fix it. I also tried deleting the .suo file (as suggested on various blogs) but no luck.

Using Tools->Import and Export Settings->Reset All Settings fixed the problem.

Chris
There was probably just 1 particular setting that was wrong
JoelFan