Dev*_*p80 5 visual-studio iis-express
当我尝试启动新创建的 WebApplication 时,出现此错误:
The program '[73635] iisexpress.exe' has exited with code 0 (0x0).
我已经通过互联网进行了搜索,但这些解决方案都没有帮助我:
我只想建立页面。我没有对原始 MVC5 网站进行任何更改。
编辑:我认为这是一个错误,但在评论中@Lex li 说这不是一个错误。当我在互联网上搜索时,看起来很多人以前都经历过。
我刚刚创建了一个新的 MVC 应用程序。没有做任何更改,我尝试使用 IIS Express(谷歌浏览器)运行它,但它只是停止了,没有其他任何东西。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.
Run Code Online (Sandbox Code Playgroud)
我已经意识到 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/.
Run Code Online (Sandbox Code Playgroud)
小智 0
当我尝试在本地主机中运行先前已删除的应用程序时,就会发生这种情况。
我需要在 IIS 中重新制作一个本地网站,并提供 Web.config 所在 fisic 文件夹的路径。或者,您可以在C:\Windows\System32\drivers\etc\host本地网站上以任意名称注册,例如添加以下行:
127.0.0.1 yourlocalsite.Web
并在 IIS 关联中使用此名称作为站点的主机名。
然后您可以使用在浏览器中打开它yourlocalsite.Web。
| 归档时间: |
|
| 查看次数: |
21218 次 |
| 最近记录: |