【发布时间】:2019-05-27 18:40:37
【问题描述】:
当我尝试启动新创建的 WebApplication 时,我收到此错误:
The program '[73635] iisexpress.exe' has exited with code 0 (0x0).
我已经在互联网上进行了搜索,但这些解决方案都没有帮助我:
- 更改端口号(和虚拟目录)
- 以管理员身份启动
- 删除 .vs 文件夹
- 删除 Documents 下的 IISExpress 文件夹
- 使用 64 位版本的 IISexpress
- 重启电脑
- 按 CTRL-F5
我只想构建页面。 我没有对原来的 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/.
【问题讨论】:
-
代码 0 表示“无错误”。这里到底有什么问题?请详细描述。
-
添加了更多信息,@LexLi
-
你最好运行一个项目诊断报告并将其作为问题的一部分,docs.jexusmanager.com/tutorials/vs-diagnostics.html 用这样的关键信息谈论这些是不可能的。
-
@LexLi,我已经添加了诊断。但这对我来说意义不大。
-
您的设置似乎不错,但
Error initializing IISUTIL's LocalRequest. hr = 80072afa是未记录的。除了与微软交谈,我认为你无能为力,developercommunity.visualstudio.com/spaces/8/index.html