首页 > 解决方案 > 程序 iisexpress.exe' 已退出,代码为 0

问题描述

当我尝试启动新创建的 WebApplication 时,出现此错误:

The program '[73635] iisexpress.exe' has exited with code 0 (0x0).

我已经在互联网上进行了搜索,但这些解决方案都没有帮助我:

我只想构建页面。我没有对原始 MVC5 网站进行任何更改。

编辑:我认为这是一个错误,但在@Lex li 的评论中说这不是一个错误。当我在互联网上搜索时,看起来很多人以前都经历过。

我刚刚创建了一个新的 MVC 应用程序。在不做任何更改的情况下,我尝试使用 IIS Express (Google Chrome) 运行它,但它只是停止了,没有其他任何东西。Chrome 给了我这个错误:This site can’t be reached localhost refused to connect.. 而且我从来没有遇到任何错误。它只是无法启动,并且 Visual Studio 诊断工具在 Chrome 自行关闭的同时停止运行。

编辑2:我已经能够挖掘更多:

C:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error
Starting IIS Express ...
Initializing the W3 Server Started CTC = 2601562
Error initializing IISUTIL's LocalRequest.  hr = 80072afa
Terminating W3_SERVER object
Start listenerChannel http:0
Initializing the W3 Server Started CTC = 2610156
Error initializing IISUTIL's LocalRequest.  hr = 80072afa
Terminating W3_SERVER object
InitComplete event signalled
Process Model Shutdown called
Unable to start iisexpress.

我已经意识到 IISExpress 我正在努力解决一些问题。当我按下 CTRL - F5: 时,我得到了这个错误unable to launch iis express web server

Scan the folder C:\Users\xuser\source\repos\CMySQL\CMySQL for project files.
1 project(s) are detected.
* CMySQL.csproj


Project file: C:\Users\xuser\source\repos\CMySQL\CMySQL\CMySQL.csproj.
IIS Express configuration file: C:\Users\xuser\source\repos\CMySQL\.vs\config\applicationHost.config.
Analyze ASP.NET project.
Extract web project settings.
UseIIS: True
AutoAssignPort: True
DevelopmentServerPort: 61708
DevelopmentServerVPath: /
IISUrl: http://localhost:6549/
NTLMAuthentication: False
UseCustomServer: False
CustomServerUrl: 

SaveServerSettingsInUserFile: False
UseIISExpress: true
IISExpressSSLPort: 
IISExpressAnonymousAuthentication: 
IISExpressWindowsAuthentication: 
IISExpressUseClassicPipelineMode: 
UseGlobalApplicationHostFile: 
Scan all bindings.
IIS Express is used for this project.
Binding *:6549 (http).
A matching binding is found for http://localhost:6549/.

标签: visual-studioiis-express

解决方案


我的问题只能通过删除.vs目录来解决。


推荐阅读