好的,我有:

Visual Studio 2010 RC, W7 x64,启动了一个新的项目类型的Silverlight应用程序。在ASP中托管Silverlight应用程序。NET Web应用程序项目。Silverlight 3.0版。 添加了一个LinqToSQL类,一个WCF服务,一个Winform测试应用程序(解决方案中的项目)和一些类(也作为解决方案中的项目)。

昨天,我突然得到了“断点当前不会被击中”。本文档未加载任何符号。'消息出现在IDE中,但它只影响Web Appliaction,我可以调试Silverlight和Winform应用程序。

我尝试/做了什么来摆脱这条信息:

Reset Visual Studio Settings removed all files in every \Temporary ASP.NET Files Folder (there is one for each 32bit/64bit and for Framework 2.0 and 4.0) tried to debug using Visual Studio Integrated Web server - normally I use IIS, in the project output of the solution I deleted every obj and bin folders in every project folder created a new solution and added all the projects to this new solution deleted the solution suo file created a new ASP.NET Web Application to test if it is a VS-installation issue => I can debug this new project/solution rebooted the machine several times repaired the vs.net installation did an IISReset removed the Web App from IIS used the Create Virtual Directory Button under Project Properties of the Web App to create a new Web App in IIS changed the Framework Version of every project from 3.5 to 4.0 Opened the Solution on my second machine => same behavior crawled Microsoft Connect for bugs / similar issues SPENT 7 HOURS.

这是我人生中第二次这样了。上次我通过删除临时ASP解决了这个问题。NET文件文件夹,但这次我需要你的帮助。


当前回答

有时右键单击断点->位置->检查允许源代码与原始版本不同,对我有用。

[编辑]: 有时重建整个解决方案也可以。

其他回答

在Web中修复此问题。我只需要添加debug="true"

  <system.web>
    <compilation targetFramework="4.0" debug="true">

什么帮助我找到这个解决方案一直在调试模块窗口,并看到我的ASP。二进制文件不是用调试信息构建的。

我必须手动从注册表中卸载所有。dll实例,并从本地驱动器中卸载所有。dll实例。卸载/重新安装我的应用程序,现在im击中断点!这样做浪费了半天时间:(。

如果调试被应用程序禁用,这是一个常见的问题,如果你在web.config上有多个转换,经常会遇到这个问题。解决这个问题的一种方法是去构建>配置管理器,并确保调试配置设置为启动…从一个转换测试到另一个转换是很常见的,因此,失去了在特定点中断的能力。

我也有同样的问题,但在VS2013的Web应用程序。对我来说,答案是更新构建配置的解决方案:-

右键单击解决方案并选择属性 选择Debug配置 选择trivet中“Configuration Properties”下的“Configuration” 为每个要调试的项目选中“Build”框

一旦我这样做了,所有的断点都开始工作了。

也有同样的问题

由于某种原因,其中一个dll在GAC中注册,因此它的版本总是与代码不同。

一旦我把它从GAC中移除,问题就解决了