我在做什么:

开放Visual Studio社区2015 File ->新建->项目 在Visual c#: Web -> ASP下。NET Web应用程序 Web应用程序 并按f5弹出错误“无法连接到web服务器'IIS Express'”。

删除applicationhost。config,位于Documents\IISExpress\config中,不会更改错误消息。(程序文件和程序文件(x86)中也有一个IISExpress文件夹。)

我注意到一件事,我不知道这是不是问题

引用文件'lib/jquery-validation/jquery.validate.js'未找到。

我有一堆破烂,但我没注意到里面有什么。这里有一些内容:

“框架”:{“框架”

我没有注意到问题,但我有网络数据,如果这可以帮助找出为什么我不能连接到web服务器。我立即得到一个RST,ACK,所以我猜端口是关闭的,不管这个web服务器是什么,没有被设置。

关于这个问题的更多信息:800700c1 error from /trace:error

我试过了:

删除applicationhost。配置(和更改端口号) 以管理员身份运行visual studio 删除文档中的IISExpress文件夹(更改错误消息,直到文件夹重新安装) 切换SSL关闭和打开,复制url到启动框。(注意:我没有使用ssl) 清除所有SFC /scannow错误 从x86版本和64位版本启动iisexpress


当前回答

还有另一种得到相同错误的方法:

使用0.0.0.0作为IP地址。这在生产环境中工作得很好,但在我们的IIS Express上开始失败。在开发中将其更改回localhost,解决了我们的问题。

其他回答

只要以管理员身份运行visual studio就可以了。

在C: Drive上重新安装Windows时遇到了这个问题,但我的Visual Studio项目在安装后在E: Drive上完好无损。我已经通过删除visual studio项目文件夹中的.vs文件夹解决了这个问题。

As Svenmarim already stated, this mostly occurs because the ip adress is already in use. This answer and its comments from the visualstudio developer community pointed me to the right direction. In my case i was trying to access my local IISExpress instance from my local network and therefore binded my ip adress with the same port which uses my IISExpress instance via netsh http add urlacl url=http://192.168.1.42:58938/ user=everyone After removing this binding via netsh http delete urlacl url=http://192.168.1.42:58938/ it worked again.

->关闭visual studio ->删除。vs文件->删除launchsettings.json

重启visual studio…

希望这能解决你的问题

我的解决方案(对于。net core 2.0)是我忘记在applicationUrl中添加端口号,在launchSettings.json中的iisExpress下

"iisExpress": {
  "applicationUrl": "https://localhost:50770",
  "sslPort": 50770
}