Visual studio 程序iisexpress.exe';已退出,代码为0
当我尝试启动新创建的Web应用程序时,出现以下错误:Visual studio 程序iisexpress.exe';已退出,代码为0,visual-studio,iis-express,Visual Studio,Iis Express,当我尝试启动新创建的Web应用程序时,出现以下错误: 程序“[73635]iisexpress.exe”已退出,代码为0(0x0)。 我已经通过互联网进行了搜索,但这些解决方案都没有帮助我: 更改端口号(和虚拟目录) 以管理员身份开始 删除.vs文件夹 删除文档下的IISExpress文件夹 使用IISexpress的64位版本 重新启动计算机 按CTRL-F5键 我只想建立这个页面。 我没有对原来的MVC5网站做任何更改 编辑: 我认为这是一个错误,但在@Lex li的评论中说这不是一个错
程序“[73635]iisexpress.exe”已退出,代码为0(0x0)。
我已经通过互联网进行了搜索,但这些解决方案都没有帮助我:
- 更改端口号(和虚拟目录)
- 以管理员身份开始
- 删除.vs文件夹
- 删除文档下的IISExpress文件夹
- 使用IISexpress的64位版本
- 重新启动计算机
- 按CTRL-F5键
无法访问此站点localhost拒绝连接。
。我从来没有犯过这样的错误。它只是无法启动,VisualStudio诊断工具在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.
我已经意识到我在和什么东西搏斗。当我按CTRL-F5时,出现了此错误:无法启动iis express web服务器
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/.
当我尝试在localhost中运行以前删除的应用程序时,就会发生这种情况 我需要在IIS中重新创建一个本地网站,其中包含指向Web.config所在的fisic文件夹的路径。或者,您可以在
C:\Windows\System32\drivers\etc\host
以任意名称注册本地网站,如添加以下行:
127.0.0.1 yourlocalsite.Web
并在IIS关联中使用此名称作为站点的主机名
然后,您可以使用
yourlocalsite.Web
在浏览器中打开它,关闭所有适用于我的浏览器窗口
但那是在第一次这样做之后:
文件->打开->网站
如本文所述,我从IIS Express中删除了该网站:
不确定是否必须同时执行这两项操作,但它对我有效。我的问题仅通过删除
.vs
目录得到解决。代码0表示“无错误”。这里到底有什么问题?请详细描述。添加了更多信息,@LexLi您最好运行一个项目诊断报告,并将其作为问题的一部分附上,这样的关键信息是不可能谈论的。@LexLi,我已经添加了诊断。但这对我来说意义不大。您的设置似乎很好,但初始化IISUTIL的LocalRequest时出错。hr=80072afa是未记录的东西。除了与Microsoft交谈之外,我认为您没有什么可以做的,删除.vs目录是解决此问题的基本方法。它会起作用的。