iis - 使用IIS部署asp.net core网站时出现502.5错误

标签 iis asp.net-core

我有一个 ASP.NET Core 1.0 应用程序,它已成功部署并在我们的预生产服务器上运行数月。今天,我尝试使用本文作为指导将网站部署到我们的生产服务器:
https://docs.asp.net/en/latest/publishing/iis.html

底线是我们无法克服这个错误:

HTTP Error 502.5 - Process Failure

Common causes of this issue:
* The application process failed to start
* The application process started but then stopped
* The application process started but failed to listen on the configured port

我们尝试了本文中列出的想法,但仍然没有运气:
ASP.NET Core 1.0 on IIS error 502.5

您如何调试 502.5 错误以找出失败的实际原因?

正在创建应用程序的日志文件,但不幸的是它们是空的。 Web 服务器的事件查看器包含以下条目:
Process was created with commandline 'D:\Applications\PVP\UserInterface.exe' but failed to get the status, errorCode = 0x80070005

任何帮助将不胜感激!托利。

最佳答案

尝试隔离问题是服务器 (IIS) 还是应用程序。通过直接查找和运行应用程序来做到这一点。找到您的 web.config 并运行该过程。

对于 DLL,这是:

dotnet MyApp.dll

对于 EXE,这是:
MyApp.exe

对你来说,这可能意味着运行 D:\Applications\PVP\UserInterface.exe直接地。

关于iis - 使用IIS部署asp.net core网站时出现502.5错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39133571/

相关文章:

iis - 从 IE 下载 Docx - 在 IIS 中设置 MIME 类型

ASP.NET Web API - 不允许使用 PUT 和 DELETE 动词 - IIS 8

c# - Microsoft.Build 和 Microsoft.Web.Administration nuget 包之间的冲突

redirect - 强制 HTTP 到 HTTPS 重定向

c# - 如何在 ASP.NET Web API Core 应用程序上使用 QUARTZ 实现调度程序?

c# - Microsoft Visual Studio 2019 : The project file cannot be opened. 无法定位 .NET SDK

azure - 将 Azure AppServices 中的 Web API 的访问限制为 Azure Function 应用程序,同时允许其他服务访问其他 Web api 和网页

azure - ASP.NET Core Docker 容器内的 Nginx

asp.net-web-api - 向 API 发送数据为空

asp.net - 现有 ASP.NET 4 解决方案中的高效 URL 屏蔽/隐藏/隐藏