我在做什么:

开放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


当前回答

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.

其他回答

我可以通过改变一个东西来切换这个错误。在我的ASP。Net Core 1.0 RC2 Web应用程序项目的启动设置。json文件:

  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "https://localhost:18177/",
      "sslPort": 0
    }
  },

to

  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:18177/",
      "sslPort": 0
    }
  },

我已经更改为https,试图使用该协议运行项目。显然,这里不适合做这种改变。我怀疑它在同一个端口上创建了多个绑定,IIS Express不喜欢这样。

我不知道是什么导致了这个问题。 但是修理装置把它修好了。

我添加了. useurls ("https://localhost:<一些端口>/")到Program.cs。这似乎对我有用!

根据要求将我的评论复制到一个答案。

Net Core 2.2项目-经过巨大的斗争和尝试一切从删除。VS文件夹,删除IIS Express配置,更改端口号,更改绑定,并运行VS作为管理员,我终于解决了这个问题

关闭与, 删除launchSettings.json 打开VS,重新生成launchSettings.json。

文件是否损坏或不正确并不明显,甚至当它更改导致失败时也不清楚。

关闭Visual Studio后,删除临时文件夹iisexpress: C:\Users\<your_user>\AppData\Local\Temp\iisexpress。