asp.net - Visual Studio "Unable to start debugging on the web server. The web server did not respond in a timely manner."

标签 asp.net visual-studio visual-studio-2008 debugging iis

在 Visual Studio 中编译并运行我的 Web 应用程序时,我经常收到以下错误:

“无法在 Web 服务器上启动调试。Web 服务器未及时响应。这可能是因为另一个调试器已附加到 Web 服务器。”

通常这是在调试应用程序一次之后发生的。我从命令行运行“iisreset/restart”,它解决了问题。

首先我该如何防止这种情况发生?

最佳答案

对我有用的解决方案:

  1. 打开命令提示符(以管理员身份运行)

  2. 写入iisreset/restart

  3. 现在,返回 VS 并进行调试。它将调试您的解决方案。

就我而言,它也适用于 Visual Studio 2013 和 2015。

关于asp.net - Visual Studio "Unable to start debugging on the web server. The web server did not respond in a timely manner.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2524/

相关文章:

c++ - stdcall 被 visual studio 覆盖了吗?

javascript - 在 VS.NET 2008 IDE 上的事件列表中查看 JavaScript 函数名称

c# - Cookie 在 ASP.net 中失去值(value)

asp.net - 使用 Redis 的 SignalR 横向扩展背板

asp.net - 如何在服务器端 asp.net 中跟踪 Google Analytics 事件?

c# - Windows 窗体设计器错误 "Illegal characters in path."

android - 无法在 Visual Studio Android 模拟器中调试 Xamarin 应用程序

c# - 每次在我的 VS 2008 解决方案中重建项目

visual-studio-2008 - 更改默认的 MsTest 单元测试向导模板

asp.net - 如何将 Azure 上的多个自定义域映射到同一服务器但不同的 URL?