好的,我有:

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文件文件夹,但这次我需要你的帮助。


当前回答

我也遇到了同样的问题——在Visual Studio中调试工作花费了大量的时间。

最后是Nuget——我有三个版本的Newtonsoft。Json(横跨7个c#项目)。解决方案可以编译,但不可调试。

我通过在Nuget的包管理器控制台运行以下命令来解决这个问题:

PM>更新包Newtonsoft。Json

其他回答

我所做的解决这个问题是在我的断点没有击中的页面,我选择了文件夹>添加一个现有的项目,然后从其保存路径选择项目。这允许断点开始工作。

如果没有命中断点,则删除.xap文件。在志愿者项目。删除“YourProject.xap”。我已经尝试了所有以上和偶然发现这个修复,工作的每一次。明智的清理项目后删除以及。

请检查承载silverlight xap的Web (Asp.Net)项目的Web属性。 去Web项目托管你的silverlight xap ->属性-> Web ->调试器部分->确保选中了silverlight复选框。

我正在使用VS 2008,我得到了这个错误。我尝试了这里和其他一些网站上建议的所有方法,但都不起作用。

解决方案非常简单,这页上还提到了另外两个解决方案,让我找到了正确的方法。

转到项目菜单并单击属性(也可以在解决方案资源管理器中右键单击项目名称并选择属性)。 选择左边的Compile选项卡。 在“构建输出路径:”文本框中,确保文本框中有“bin\”。

在我的情况下,它指向网络上的另一个bin文件夹,这就是导致断点失败的原因。您希望它查看项目的当前Bin文件夹。

另一个可能有用的轶事是

当我的一个项目使用来自发布输出文件夹的文件引用时,我遇到了这个问题。当构建结果被放置在Goods文件夹中时,这些Release dll将覆盖Debug dll。

解决方案是确保在csproj文件中,我的引用的HintPath是

< HintPath > \…" Goods美元(Configuration) \ \核心MyFramework等< / HintPath >。

而不是

<HintPath>..\..\Core\Goods\Release\MyFramework.dll</HintPath>