如何解决"Microsoft Visual Studio(VS)"问题;错误“无法启动IIS Express Web服务器"; [英] How to solve "Microsoft Visual Studio (VS)" error "Unable to launch the IIS Express Web server"

查看:194
本文介绍了如何解决"Microsoft Visual Studio(VS)"问题;错误“无法启动IIS Express Web服务器";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题

在某些情况下,当您使用" Microsoft Internet信息服务Express(IIS)"和您在运行Build之后将网站项目附加到IIS,显示此错误消息

In some cases "Microsoft Visual Studio (VS)" when you use "Microsoft Internet Information Services Express (IIS)" and you have attached web site project to IIS after run Build shown this error message

Unable to launch the IIS Express Web server.

如果仅显示异常消息,该如何解决?

How can I solve it if exception message does not shown nothing more?

推荐答案

PRE-REQUIREMENTS

最好的步骤是捕获正在发生的事情.

The best step is catch what exactly is going on.

  1. 下载并使用它" Sysinternals进程监视器(PM)".

运行PM并创建过滤器'进程名称''是''iisexpress.exe'".现在,您仅显示来自IIS的捕获事件.

Run PM and create filter "'Process Name' 'is' 'iisexpress.exe'". Now you show capture events only from IIS.

使用键 F5 运行构建VS项目,并查看PM结果.

Run building your VS project with key F5 and watch PM results.

双击第一行,打开"Operation = Process Start",然后查看运行IIS的完整参数的详细信息,尤其是命令行".

Open with double click first row with "Operation = Process Start" and look detail for full parameters to run IIS especially "Command line".

打开"命令行界面(CLI),称为"命令外壳 Win + R 写入"cmd",将IIS命令行值放入并使用 Enter 运行.现在您看到了确切的错误:

Open "Command Line Interface (CLI)" called "Command shell" with Win+R write "cmd" put IIS command line value and run with Enter. Now you see the exact error:

"C:\Program Files\IIS Express\iisexpress.exe"  /config:"C:\Users\{user_name}\Documents\IISExpress\config\applicationhost.config"  /site:"{project_name}" /apppool:"Clr4IntegratedAppPool"

解决方案

案例"apppool"

以下开关需要一个值:'apppool'

The following switch requires a value: 'apppool'

  1. 打开文件

  1. Open file

%userprofile%\documents\iisexpress\config\applicationhost.config`

  • 在站点>站点"部分中找到您的命名项目,或者通过bindingInformation通过VS附件找到.在版本中,将您用于项目的版本的另一个参数"applicationPool"添加到应用程序"部分.

  • Find in section "sites > site" your named project or by bindingInformation by attached from VS. Add to section "application" another parameter "applicationPool" from version what you use for your project.

    <application path="/" applicationPool="Clr4IntegratedAppPool">
    

  • 现在进行测试,完全关闭VS,再次打开项目并进行构建.

  • Now test it, close fully VS, open project again and build.

    案例"config"

    1. 删除WebMatrix"或创建符号链接",或在该位置上将其替换.

    参考

    感谢 查看全文

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