无法启动配置的Visual Studio开发Web服务器

编程入门 行业动态 更新时间:2024-10-05 19:16:49
本文介绍了无法启动配置的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:

  • 关闭所有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服务器

    本文发布于:2023-11-23 21:55:24,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1622957.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:无法启动   服务器   Studio   Visual   Web

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!