无法启动 IIS Express Web 服务器 [英] Unable to launch the IIS Express Web server

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

问题描述

我有一个 asp.net MVC 4 解决方案.当我尝试使用 Visual Studio 2012 打开它时,出现以下错误:

I have an asp.net MVC 4 solution. When I try to open it using Visual studio 2012, I get following error:

微软 Visual Studio

为 ASP.NET 4.5 配置 Web https://localhost: 失败.你必须为 ASP.NET 4.5 手动配置此站点,以便站点正确运行.找不到服务器 https://localhost:44300/本地机器.确保已配置本地 IIS 服务器以支持安全通信.

Configuring Web https://localhost: for ASP.NET 4.5 failed. You must manually configure this site for ASP.NET 4.5 in order for the site to run correctly. Could not find the server https://localhost:44300/ on the local machine. Make sure the local IIS server has been configured to support secure communications.

好的帮助

虽然解决方案打开了.此外,当我尝试从调试菜单运行它时,出现以下错误:

Although the solution opens. Also, When I try to run it from debug menu, I get following error:

 Unable to launch the IIS Express Web server.

The start URL specified is not valid. https://localhost:44300/

我无法调试代码.如何摆脱这些错误并从 VS 2012 调试/运行网站?

and I can not debug the code. how to get rid of these errors and debug/run the web site from VS 2012 ?

请提出建议.

推荐答案

我遇到了完全相同的问题.
原因 - 错误的 IIS 配置文件.

I had the exact same problem.
The reason - bad IIS config file.

尝试删除自动创建的 IISExpress 文件夹,该文件夹通常位于 %userprofile%/Documents,例如C:Users[you]DocumentsIISExpress.

Try deleting the automatically-created IISExpress folder, which is usually located at %userprofile%/Documents, e.g. C:Users[you]DocumentsIISExpress.

别担心,VS 应该再次创建它 - 这一次是正确的 - 一旦你再次运行你的解决方案.

Don't worry, VS should create it again - correctly, this time - once you run your solution again.

删除文件夹的命令行:

rmdir /s /q "%userprofile%DocumentsIISExpress"

这篇关于无法启动 IIS Express Web 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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