visual-studio - 程序 iisexpress.exe' 已退出,代码为 0
问题描述
当我尝试启动新创建的 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/.
解决方案
我的问题只能通过删除.vs
目录来解决。
推荐阅读
- c++ - 是否有另一种方法可以在不使用 if 语句的情况下有条件地增加数组值?C++
- nsis - 即使在自定义屏幕以在 NSIS 中显示标题和描述后,完成页面有时也会显示重新启动选项
- delphi - 查找来电者表单名称
- python-3.x - ValueError:无法为形状为“(40、224、224、3)”的张量“Placeholder_4:0”提供形状(40、244、244)的值
- python - 如何删除列表中重复小于k的项目
- flutter - 关闭滚动键盘?
- string - 文本替换 - 字符串和空格
- c# - C#:从带有分隔符的字符串中提取项目的有效方法
- xml - 使用 XSLT 为 XML 元素生成 ID
- javascript - 从 Vuex 存储获取器返回箭头函数:不理解