views:

2370

answers:

3

I'm trying to debug an ASP.Net web project that I received. I modified a class in the "Apps_LocalResources" folder. When I debug and the code tries to step into that class, I get "The source file is different from when the module was built.". I rebuilt the solution and didn't get any change. I even published it to a different location and the pdb and dll in the bin folder didn't change so I didn't copy them over.

Ideas?

+2  A: 

If you are attaching to asp.net worker process, then kill the process, start up the website and reattach the debugger.

If you are using the built in web server, then make sure you stop the project and the WebDev.WebServer.Exe associated with it.

If all else fails, right click on the breakpoint and choose locations. Then enable the "allow code to be different..." check box at the bottom.

StingyJack
A: 

Perfect. Stopped the associated webdev server and it fixed my problem. Didn't think it was still running. Thanks!

Mark the answer correct.
Robert C. Barth
A: 

my problem is not fixed yet.....i have a build code with me and it always succeed in rebuild but the changes are still not visible on the browser that i made to my website code....its a asp.net/c# site......please help me

sunshine786