获得"源文件不同,模块建造时&QUOT。 [英] Getting "The source file is different from when the module was built."

查看:155
本文介绍了获得"源文件不同,模块建造时&QUOT。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图调试我收到一个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.

这篇关于获得"源文件不同,模块建造时&QUOT。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆