获得"源文件不同,模块建造时&QUOT。源文件、模块、不同、QUOT

2023-09-02 21:12:15 作者:舂夢茽冇妳

我试图调试我收到一个ASP.Net Web项目。我在Apps_LocalResources文件夹修改的类。

I'm trying to debug an ASP.Net web project that I received. I modified a class in the "Apps_LocalResources" folder.

当我调试和code试图踏进那类,我得到

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.".

我重建了解决方案,并没有得到任何改变。我甚至它发布到不同的位置和PDB和dll中的bin文件夹并没有改变,所以我没有将它们复制过来。

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.

想法?

推荐答案

如果要连接到asp.net工作进程,然后杀死进程,启动了网站,并重新安装调试器。

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

如果您使用的是内置的Web服务器,然后确保你停止该项目,并与它相关的WebDev.WebServer.Exe。

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

如果一切都失败了,右键单击该断点,然后选择位置。然后启用允许code是不同的......支票底盒。

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.