无法在Web服务器上启动调试。底层连接已关闭。连接意外关闭 [英] Unable to start debugging on the web server. The underlying connection was closed. The connection was closed unexpectedly

查看:311
本文介绍了无法在Web服务器上启动调试。底层连接已关闭。连接意外关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然间,我在本地Web服务器上遇到以下错误(Win7 64位,IIS 7.5)。我已经卸载了&在本地重新安装IIS,它没有修复它。 IIS设置为自动启动,我可以看到该服务已成功启动。重新启动时,如果我进入IIS并单击启动网站,我会收到以下错误:

All of the sudden I'm getting the following error on my local web server (Win7 64bit, IIS 7.5). I've uninstalled & reinstalled IIS locally and it didn't fix it. IIS is set to start up automatically and I can see that the service has been successfully started. Upon a fresh reboot if I go into IIS and click on start website I get the following error:


进程无法访问该文件,因为它正在被另一个进程使用。 (HRESULT异常:0x80070020

The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020

如果我尝试在本地网站项目上开始调试,我会收到以下错误:

If I try to start debugging on my local website project I get the following error:


无法在Web服务器上启动调试。底层连接已关闭。连接意外关闭。

Unable to start debugging on the web server. The underlying connection was closed. The connection was closed unexpectedly.

关于我可以尝试的任何想法?我一直在研究这个问题,微软建议确保没有其他服务在同一个端口上监听。我已经验证了这一点不是问题。

Any ideas on what I can try? I've been doing research on the issue and Microsoft suggest making sure no other service is listening on the same ports. I've verified that this isn't the issue.

推荐答案

尝试更改网站以使用80以外的端口(例如建议8080)和看看它是否会启动。如果是这样,这是使用端口80的另一项服务的确定标志(Skype是此常见的罪魁祸首)。

Try changing the web site to use a port other than 80 (suggest 8080 for example) and see it if will start. If so that's a sure sign of another service using port 80 (Skype is a common culprit for this).

这篇关于无法在Web服务器上启动调试。底层连接已关闭。连接意外关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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