我有一个 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/