无法使用 IIS Express 在 Windows 10 上运行 Web 应用程序 [英] Cannot run web application on Windows 10 using IIS Express

查看:22
本文介绍了无法使用 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).

这篇关于无法使用 IIS Express 在 Windows 10 上运行 Web 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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