解决方案

我发现如果使用Firefox作为浏览器进行调试,则会发生这种情况。当我退出Firefox时,VS2005/8调试会话不会终止。

通常只能按Shift-F5("停止"按钮)终止当前的调试会话,然后按F5键,这将启动一个新的调试会话。
如果我们是通过IIS运行解决方案。通过执行以下操作打开/项目,我们将知道这是否适用于我们:
在Visual Studio中->打开->本地IIS->选择项目

添加/删除程序->添加/删除Windows组件->单击IIS->单击"详细信息"。如果要通过IIS进行调试,请确保安装了Front Page Extensions。

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

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

"Unable to start debugging on the web server. The web server did not respond in a timely manner. This may be because another debugger is already attached to the web server."
"无法在Web服务器上开始调试。Web服务器未及时响应。这可能是因为Web服务器上已连接了另一个调试器。"

通常,这是在已经调试过一次应用程序之后。从命令行运行" iisreset/restart",它可以解决问题。

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

日期:2020-03-24 11:10:06 来源:oir作者:oir