好的,我有:

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


当前回答

Goto项目属性->构建->高级…

在“Output”部分,在Debug Info下拉菜单中选择“full”

其他回答

我也有同样的问题。跟随对我很有用

进入web应用程序——> Properties——> Silverlight Applications

如果你没有在列表中看到你的Silverlight应用程序,然后点击添加,从“项目”下拉菜单中选择你的Silverlight应用程序,然后添加它。

一种可能的情况是,如果你的ASP项目在应用程序中引用一些代码(而不是一个dll),那么这些符号将不会被加载。

在调试代码时,我不得不暂时将引用的应用程序更改为类库。

我有一个类似的问题,除了我的问题是愚蠢的-我有2个内置的web服务器运行在2个不同的端口和我的项目->属性-> web ->“启动URL”指向一个固定的端口,但web应用程序实际上并没有在该端口下运行。所以我的浏览器被重定向到“开始URL”,它指向1539,但代码/调试实例在端口50803下运行。

我将内置web服务器更改为在固定端口下运行,并调整了我的“起始URL”以使用该端口。 项目->属性-> web ->“服务器”部分->“使用Visual Studio开发服务器”->特定端口

从浏览器中打开Web应用程序url,然后在VS.Net IDE中使用工具>AttachtoProcess

然后附加到aspnet_wp.exe。

调试器将开始工作

我在客户端遇到过这个问题,对于每个应用程序解决方案,他们将大多数共享程序集复制到“引用”文件夹,然后将它们作为“解决方案项”和解决方案中的“项目”添加到解决方案中。

目前还不确定原因,但其中一些是可调试的,一些是不可调试的,即使在程序集的References设置中指定了正确的完整路径。

这种不可预知的行为几乎把我逼疯了:)

我通过从“References”文件夹中删除所有带有源代码的项目的程序集来解决这个问题,并很好地跟踪共享程序集的版本信息。