I have a web application in Visual Studio 2008 with a web service and a couple web forms. When I try to debug, none of my breakpoints are available; if I mouse over them, I see:
“The breakpoint will not be hit. The source code is different than the original version.”
The list of loaded debug modules includes the old version 1.0.* of my assembly. I have since changed it to 1.1.0.0 but that version never gets loaded. I tried stopping IIS and deleting the files out of Temporary ASP.NET Files, but when I restart it the 1.0.* version comes right back! The build output is definitely 1.1.0.0 and not 1.0.*, so where can it possibly be coming from? The same thing happens when I use the VS Development Server instead of IIS.
Thanks
I’ve seen this happen when the DLL is cached in the Temporary ASP.NET Files folder. Try doing a “Rebuild All”, and if it’s still happening remove the DLL from the temp folder, or clear the folder contents altogether.