好的,我有:

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


当前回答

调试->附加到进程-> 选择Debug这些代码类型:option -> 选择托管v3.5、v3.0、v2.0或托管v4.5、v4.0

其他回答

在我的案例中,解决同样问题的方法是以下步骤的组合:

解决方案—>属性选择多个启动项目选择需要调试的项目的启动动作。 从服务引用中删除服务并清理解决方案。 重新构建服务项目 将其添加回服务引用 清理解决方案并重新构建。

也有同样的问题

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

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

我采取了最简单的路径,实际上在我的多个项目解决方案中,包括一个类库,我有一个问题,由类库项目创建的.dll文件不允许我在执行时有断点,因为它不是由于某种原因构建的,我单独构建该项目并引用它的输出.dll,现在断点是功能性的

不确定,也许这个能帮到你;如果不是你,那就找一个像我这样的新人吧,因为这对我来说很管用:)

尝试将Silverlight Application Project设置为启动项目:右键单击Project -> '设置为启动项目。然后按F5,看看你是否能捕捉到断点…

每次对silverlight应用程序进行更改时,尝试删除浏览器中的浏览/临时数据

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