无法使用IIS Express在Windows 10上运行Web应用程序

问题描述:

我正在使用ASP.NET MVC开发一个Web应用程序(这是一个非常简单的应用程序,只有一个控制器和一些路由;没有花哨的地方).最初,我使用Visual Studio 2013和Windows 8/8.1.几天前,我切换到Windows 10,但在本地开发计算机上运行该应用程序时遇到了麻烦(我同时安装了Visual Studio 2013和2015,但是我继续在该项目中使用Visual Studio 2013).

I am developing a web application using ASP.NET MVC (a rather simple application, having just a single controller and a few routes; there´s nothing fancy in it). In the beginning I used Visual Studio 2013 and Windows 8/8.1. A couple of days ago I switched to Windows 10 and I am having trouble to run the application on my local development machine (I have both Visual Studio 2013 and 2015 installed, but I continue using Visual Studio 2013 for this project).

当我启动新实例进行调试时,IIS Express将启动,Visual Studio将启动选定的浏览器(默认情况下为Edge),但是对站点的请求永远不会返回有效的响应.

When I start a new instance for debugging, IIS Express starts, Visual Studio launches the selected browser (which is Edge by default), but the request to the site never returns a valid response.

我可以在系统托盘中看到该应用程序似乎运行良好.我也和Fiddler核对过; Fiddler向我展示了浏览器的请求从未获得本地服务器的响应.防火墙有问题吗?

I can see in the system tray, that the application seems to be running fine. I also checked with Fiddler; and Fiddler shows me that the browser´s request never gets a response from the local server. Can this be an issue with the firewall?

更新

我认为这与Edge浏览器或localhost loopback设置无关(此设置已通过about:flags页启用).此外,我在Windows 10的最终版本下遇到了这个问题.

I think it has nothing to do with the Edge-browser nor with the localhost loopback setting (this setting has been enabled via about:flags page). Furthermore, I experience this problem under the final version of Windows 10.

我可以使用它,从程序和功能"中卸载IIS Express 10.0,然后安装IIS Express 8.0.我不知道是什么原因导致了v10.0中的问题,因为它在我的某些办公计算机上而不是在其他办公计算机(所有Windows 10 x64)上均可.

I got it working for me, uninstall IIS Express 10.0 from 'Programs and Features' and install IIS Express 8.0. I have no idea what caused the issue in v10.0 as it works on some of my office machines and not on others (all Windows 10 x64).