我在VS2017/IIS Express 10中遇到了完全相同的问题.
尝试了一些技巧在论坛上发现了很多技巧,但是唯一可以真正修复该错误的技巧是:
I had exactly the same problem with VS2017 / IIS Express 10.
Tried a few tips & tricks found at forums, but the only one that really fixed the bug definitively is the following:
- 关闭所有Visual Studio实例和IIS Express(如果正在运行)
- 转到Windows的程序和资源",在已安装的程序列表中找到IIS Express,然后对其进行卸载"
- 重新启动计算机,只需确保所有进程都已关闭
- 从Microsoft下载IIS Express 10独立安装程序: https: //www.microsoft.com/zh-CN/download/details.aspx?id=48264
- 安装它,打开Visual Studio,它应该可以正常工作.
- Close all Visual Studio instances and IIS Express (if it's running)
- Go to Windows' "Programs and Resources", find IIS Express in the list of installed programs, and "Uninstall" it
- Restart your computer, just be sure that all processes are closed
- Download IIS Express 10 standalone installer from Microsoft: https://www.microsoft.com/en-us/download/details.aspx?id=48264
- Install it, open Visual Studio, and it should work fine.