断点将目前尚未受到打击。无符号已加载这个文件 [英] The breakpoint will not currently be hit. No symbols have been loaded for this document

查看:145
本文介绍了断点将目前尚未受到打击。无符号已加载这个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我有什么:

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

Visual Studio 2010 RC, W7 x64, started a new project type of Silverlight application. Hosting the Silverlight application in a ASP.NET Web Application Project. Silverlight Version 3.0. Added a LinqToSQL Class, a WCF Service, a Winform Tester Application (Project in the Solution) and a few Classes (also as Projects in the Solution).

昨天,突然我得到了'断点将目前尚未受到打击。无符号已加载这个文件。出现消息中的IDE,但只影响Web Appliaction,我可以调试Silverlight和winform应用程序。

Yesterday, suddenly i got the 'The breakpoint will not currently be hit. No symbols have been loaded for this document.' message to appear in the IDE, but it only affects the Web Appliaction, i can debug the Silverlight and the Winform App.

我试过/没有摆脱消息:

What i tried / did to get rid of the message:


  • 重置Visual Studio设置

  • 删除所有文件中的每一个\\ Temporary ASP.NET Files文件夹(有一个每个32位/ 64位和Framework 2.0和4.0)

  • 尝试使用Visual Studio集成的Web服务器调试 - 通常我使用IIS,在解决方案中的项目输出我在每个项目文件夹中删除所有的OBJ和bin文件夹

  • 创建了一个新的解决方案,并添加所有的项目,新的解决方案

  • 删除解决方案锁文件

  • 创建一个新的ASP.NET Web应用程序进行测试,如果它是一个VS-安装问题=>我可以调试这个新项目/解决方案

  • 重新启动机器几次

  • 修复vs.net安装

  • 做了一个IISRESET

  • 删除的Web应用程序从IIS

  • 使用下的Web应用程序的项目属性创建虚拟目录按钮来创建一个新的Web应用程序在IIS

  • 从3.5改Framework版本每个项目的4.0

  • 打开我的第二台机器上的解决方案=>相同的行为

  • 爬Microsoft连接的错误/类似问题

  • 用了7个小时。

所以,这种情况发生在我生命中的第二次。我最后一次解决它,删除临时ASP.NET文件夹,但这个时候,我需要你的帮助。

So, this happens the 2nd time in my life. last time i solved it by deleting Temporary ASP.NET Files Folder, but this time i need your help.

推荐答案

每当我有这个特定错误上来,它的证明,即Visual Studio中加载从组件文件夹是不同的文件夹中的Web应用从运行。

Whenever I've had this particular error come up, it's turned out that the folder that Visual Studio is loading assemblies from is different from the folder the web-application is running from.

也就是说,应用程序服务器正在运行从

That is, the application server is running the application from

C:\dev\MyApplication\bin 

但Visual Studio是由

but Visual studio is debugging from

C:\dev\MyOtherApplication\bin (or something along those lines, anyway).

请注意 - 由于种种原因,我做我与IIS调试的应用主机,而不是大多数人使用极小的小发明独立。这可能会影响到我的回答的用处!

Note - for various reasons, I do my debugging with IIS as the application host instead of the dinky standalone gizmo that most people use. This could influence the usefulness of my answer!

更新

有关IIS应用程序服务器目录(即 C:\\ dev的\\为MyApplication 以上)是的物理目录的配置的Web应用程序 - 这可以通过该应用改变基本设置来控制。

For IIS the application server directory (i.e. C:\dev\MyApplication above) is the physical directory configured for the web application - this can be controlled by changing basic settings for the app.

对于Visual Studio调试目录(即 C:\\ dev的\\ MyOtherApplication 以上)是目录中,你的 SVC 文件被发现,通常在相同的目录的csproj 项目文件。

For Visual studio the debugging directory (i.e. C:\dev\MyOtherApplication above) is the directory in which your svc files are found, usually the same directory as your csproj project file.

这篇关于断点将目前尚未受到打击。无符号已加载这个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆