好的,我有:

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


当前回答

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

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

其他回答

这是一个非常有用的帖子,列出了解决这个有害问题的清单。对我来说,有效的方法是切换到IE。我花了一段时间才意识到,因为我已经在使用IE,我已经设置了项目的web属性,以便启动操作是启动扩展程序

C:\Program Files (x86)\Internet Explorer\ iexplorer .exe

使用命令行参数

http://localhost/MyProject (

我需要-private标志来阻止IE缓存我正在处理的swf。从“启动外部程序”切换回“特定页面”修复了“没有符号已加载”的问题。

我尝试了很多东西。对我有用的方法。 通过右键单击项目,我将Silverlight应用程序设置为“启动项目”。然后我试着运行它(这显然失败了,因为它依赖RIA服务到一个没有运行的web服务器) 然后我将Web项目重置为启动项目。嘿,瞬间…一切都在运转。

好了,开始吧:

(在一个“silverlight应用程序”中:请首先检查silverlight是否在你的服务器项目“属性”中的“web”中被选中-如果这没有解决问题,那么尝试下面的这个)

第一次做以下事情: 首先运行:devenv.exe /ResetSettings 而且 1: 在顶部菜单中单击调试标签 2: 点击选项和设置 3: 在“调试”和“通用”下找到“启用。net框架源代码步进” 4: 在方框上打勾。 5: 现在所有的符号都将被下载并重新配置:)

如果它再次发生后,上述只是清除文件夹的符号是:

1: 在顶部菜单中单击调试标签 2: 点击选项和设置 3: 在“调试”和“符号”下找到“空符号缓存”按钮并单击它。

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

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

If you are having problems with Silverlight projects the solution can be fairly simple. According to my experience in many cases debugging symbols are not being loaded due to the new ".xap" files not being deployed to temporary folder (either internal VS Cassini or IIS Express). In this situation full rebuilds or resetting VS settings won't help. The easiest solution is just to delete temporary internet files within your browser. If you are using IE for Silverlight development and testing I would recommend switching on "Delete browsing history on exit" option in order not to have such issues in the future.