我正在使用VS2017,当我尝试运行我的应用程序时,只是标准地指出了IIS Express失败的原因。
I'm using VS2017 and when I tried to run my app just standard noting extra with IIS express it fails.
错误:
启动IIS Express时发生错误。无法启动配置的Visual Studio开发Web服务器。
An error occurred launching IIS Express. Unable to launch the configured visual studio development web server. Uncaught exception thrown by method called reflection.
我将端口设置为8080,而不是56000。
I've set the port to 8080 instead of 56000.
任何想法怎么了?是的,我安装了IIS Express,但它不是在后台运行。我试图以Administrtor模式启动VS,但是没有运气。我还删除了.vs文件夹并重新启动,但再次没有运气。
Any ideas how what is wrong? Yes I installed IIS Express but it's not running in the background. I've tried to start VS in Administrtor mode but no luck. I've also deleted the .vs folder and restarted but again no luck.
推荐答案根据此博客,以下步骤应该可以解决该问题:
According to this blog, the following steps should fix the issue:
关闭所有Visual Studio实例
close all Visual Studio instances
转到您的ASP.NET项目/解决方案文件夹,删除 .vs隐藏文件夹
go to your ASP.NET project/solution folder, delete ".vs" hidden folder
单击开始 ,搜索IISExpress,转到IISExpress文件夹,转到上一级并删除整个IISExpress文件夹
click "Start", search IISExpress, go to IISExpress folder, go upper level and delete whole IISExpress folder
以管理员权限启动Visual Studio
start Visual Studio with Administrator privilege
创建一个新的ASP.NET项目
create a fresh new ASP.NET project
运行此项目,这一次您应该看到IIS Express已启动,正确地运行Visual Studio
run this project, this time you should see IIS Express is launched by Visual Studio correctly
关闭此解决方案,但不关闭Visual Studio,打开遇到问题的ASP.NET项目,然后运行现在,您应该可以看到IIS Express已正确启动
close this solution but not close Visual Studio, open the ASP.NET project which you have problem with, and run it now, you should see IIS Express is launched correctly
更多推荐
无法启动配置的Visual Studio开发Web服务器
发布评论