使用 Visual Studio 2012,也许您也看到过这条消息:
它说:
The following module was built either with optimizations enabled or without debug information:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6dce49fa\6c454827\assembly\dl3\95d61873\9871ffdd_4288ce01\NoeDownloadbereichWeb.dll
To debug this module, change its project build configuration to Debug mode. To suppress this message, disable the 'Warn if no user code on launch' debugger option.
在过去,当我开始调试我的 ASP.NET 应用程序并通过简单地重新编译我的解决方案来解决它时,我可能每周都会遇到这个问题。
最近我切换到 IIS Express,现在每第二/第三次发生这种情况,我想在我做了一些更改后调试我的代码。
我通过以下一个或所有步骤来解决它:
我找到了 similar questions here和 on Google并且仍然无法永久解决此问题。
我的问题:
你能想象是什么导致了这种行为吗?
更新 1
该错误似乎与 ASP.NET error messages 有关/紧随其后喜欢(德语):
Das Erstellen von "System.Net.Http.Extensions" oder das Erstellen einer Schattenkopie ist nicht möglich, wenn diese Datei bereits vorhanden ist.
粗略地翻译成英语:
Cannot create/shadow copy "System.Net.Http.Extensions" when that file already exists.
(引用的文件名“System.Net.Http.Extensions”是由ASP.NET随机更改的)
更新 2
我已经切换回 Visual Studio 开发服务器并立即摆脱了上述错误:
不知道这是否只是在我的系统上,或者是什么原因。
最佳答案
转到“工具”>“选项”>“调试”>“常规”>“仅启用我的代码”>“如果启动时没有用户代码则发出警告”
关于asp.net-mvc-4 - 如何永久教 Visual Studio 检测我的调试信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17828872/