无法启动 IIS Express Web 服务器

编程入门 行业动态 更新时间:2024-10-06 19:27:12
本文介绍了无法启动 IIS Express Web 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

微软 Visual Studio

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

Configuring Web 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 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. 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 服务器

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

发布评论

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

>www.elefans.com

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