【问题标题】:HTTP Error 502.5 - Process Failure asp.net core 2.2HTTP 错误 502.5 - 进程失败 asp.net core 2.2
【发布时间】:2019-04-05 22:18:12
【问题描述】:

我刚刚下载并安装了 Core 2.2 SDK 和 Core 2.2 Runtime。我还将我的 Visual Studio 17 版本更新到了最新版本。

为了测试 2.2,我创建了一个简单的 ASP.NET Core 网站,并且在不进行任何更改的情况下,当我运行应用程序时,我得到了 502.5 错误。同样的事情发生在我笔记本上的类似设置上。

我认为开箱即用,这应该可以工作,所以我认为这里发生了其他事情。如果我创建一个 Core 2.1 应用程序就可以了。

有什么建议吗?错误页面上的给定链接似乎涵盖了这一点。

【问题讨论】:

标签: asp.net


【解决方案1】:

502.5(进程失败)等启动问题的常见原因如下所列:

1. The application process start application process failed to start. 
2. Started but then stopped. 
3. The application started but failed to listen on the configured port. 

你可以尝试的事情:

1) 在 Main/program.cs 文件中添加 CaptureStartupError() 和 UserSetting() 为 建议在这里 https://docs.microsoft.com/en-us/aspnet/core/fundamentals/error-handling?view=aspnetcore-2.2#startup-exception-handling

2) 查看 eventlog.xml 是否有错误或异常。

3) 启用标准输出日志文件

https://docs.microsoft.com/en-us/aspnet/core/hosting/aspnet-core-module#log-creation-and-redirection

4) 当 Detailed Errors 设置为 true 且 Capture Startup Errors 为 true 时,会显示一个详细的错误页面以响应每个请求 到服务器。

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/error-handling#startup-exception-handling

【讨论】:

    【解决方案2】:

    试试这个: 关闭所有正在运行的应用程序。 将默认端口更改为其他内容。 以管理员身份运行 VS。

    【讨论】:

    • 谢谢。我刚刚尝试过,但在使用内置模板创建的全新应用程序上仍然遇到相同的错误。我已经决定 2.2 还没有准备好迎接黄金时段,所以在我正在构建的应用程序中我选择了 2.1。
    猜你喜欢
    • 1970-01-01
    • 2018-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多