无法启动配置的Visual Studio开发Web服务器 [英] Unable to launch the configured Visual Studio development web server

查看:402
本文介绍了无法启动配置的Visual Studio开发Web服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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:


  1. 关闭所有Visual Studio实例

  1. 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服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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