我在做什么:

开放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不喜欢这样。

对于以下内容, 我所要做的就是导航到当前项目解决方案目录> .vs > config删除applicationhost。配置,然后重新启动VS和正常运行没有问题。

.vs是一个隐藏文件夹

尝试使用不同的端口。我刚刚建立了一个新的Core 1.0 RC1项目,得到了同样的错误。

右击web项目 调试选项卡 切换启用SSL关闭和再次打开,它应该生成一个新的随机端口 复制SSL URL并粘贴到“启动URL”框中 运行项目

为我工作(TM)。

答案来自:https://stackoverflow.com/a/28650554/134761

以管理员身份在本地计算机上登录 以管理员身份打开visual studio 删除项目文件夹中的bin文件夹和。vs文件夹 删除{users}\Documents\IISExpress中的所有文件

我认为最根本的问题是我的许可

从项目文件夹中删除bin和obj文件夹并重新构建。