当前不会命中断点.Silverlight 应用程序中没有为此文档加载任何符号 [英] The breakpoint will not currently be hit. No symbols have been loaded for this document in a Silverlight application

查看:44
本文介绍了当前不会命中断点.Silverlight 应用程序中没有为此文档加载任何符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我有什么:

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 App.

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 文件夹
  • 创建了一个新解决方案并将所有项目添加到这个新解决方案中
  • 已删除解决方案 suo 文件
  • 创建了一个新的 ASP.NET Web 应用程序来测试它是否是 VS 安装问题 => 我可以调试这个新项目/解决方案
  • 多次重启机器
  • 修复了 vs.net 安装
  • 进行了 IISReset
  • 从 IIS 中删除了 Web 应用
  • 使用 Web App 的 Project Properties 下的 Create Virtual Directory 按钮在 IIS 中创建新的 Web App
  • 将每个项目的框架版本从 3.5 更改为 4.0
  • 在我的第二台机器上打开了解决方案 => 相同的行为
  • 爬取 Microsoft Connect 的错误/类似问题
  • 花了 7 小时.

所以,这是我生命中的第二次.上次我通过删除 Temporary ASP.NET Files Folder 解决了这个问题,但这次我需要你的帮助.

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:devMyApplicationin 

但 Visual Studio 正在从

but Visual studio is debugging from

C:devMyOtherApplicationin (or something along those lines, anyway).

注意 - 由于各种原因,我使用 IIS 作为应用程序主机进行调试,而不是大多数人使用的极小的独立 Gizmo.这可能会影响我的答案的有用性!

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:devMyApplication)是为 Web 应用程序配置的物理目录 - 这可以通过更改基本目录来控制应用程序的设置.

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

对于 Visual Studio,调试目录(即上面的 C:devMyOtherApplication)是您的 svc 文件所在的目录,通常与您的目录相同csproj 项目文件.

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

这篇关于当前不会命中断点.Silverlight 应用程序中没有为此文档加载任何符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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