简体   繁体   English

运行.NET Core API项目会出现错误502.5-进程失败

[英]Running .NET Core API project gives Error 502.5 - Process Failure

I have a .NET Core Web API project which all of a sudden stopped working correctly (on localhost) - when I run it on "AnyCPU" or "x86" platforms, I get this error: 我有一个.NET Core Web API项目,该项目突然停止正常运行(在localhost上)-当我在“ AnyCPU”或“ x86”平台上运行它时,出现此错误:

HTTP Error 502.5 - Process Failure HTTP错误502.5-进程失败

It only works when I run it in "x64". 它仅在“ x64”中运行时有效。

I see that this question has been asked a lot, but mostly people had problems with deployment and I am running the project on localhost. 我看到这个问题已经问了很多,但是大多数人在部署时遇到问题,并且我在本地主机上运行该项目。 Also, I didn't find a similar question with results depending on the platform. 另外,根据平台的不同,我没有发现类似的问题。

I have had this issue a few times. 我有几次这个问题。 What resolved it for me was to ensure the target framework sdk is installed. 对我来说解决的是确保已安装目标框架sdk。

I was targeting 2.1.3 but only had 2.1.0 installed and failed for this reason. 我的目标是2.1.3,但仅安装2.1.0并因此失败。

If running on windows you can open the Event Viewer app and expand windows logs and select Application, the errors show up there and reveal more detailed error messages 如果在Windows上运行,则可以打开“事件查看器”应用程序并展开Windows日志并选择“应用程序”,错误在那里显示并显示更多详细的错误消息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .NET Core 2.1.5 HTTP错误502.5-部署过程中失败 - .NET Core 2.1.5 HTTP Error 502.5 - Process Failure on Deploy 错误502.5-进程失败ASP.NET Core 1.1 - Error 502.5 - Process Failure ASP.NET Core 1.1 ASP.NET CORE 3.0 - HTTP 错误 502.5 - 进程失败 - ASP.NET CORE 3.0 - HTTP Error 502.5 - Process Failure aspnet-core-ad-authentication 项目 HTTP 错误 502.5 - 进程失败 - aspnet-core-ad-authentication project HTTP Error 502.5 - Process Failure ASP.NET Core 1.1 HTTP错误502.5-启动时进程失败 - ASP.NET core 1.1 HTTP Error 502.5 - Process Failure on startup HTTP 错误 502.5 - 升级到 ASP.NET Core 2.2 后 ANCM 进程外启动失败 - HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure after upgrading to ASP.NET Core 2.2 Asp.net 核心 502.5 - 部署时进程失败错误 - 日志记录问题 - Asp.net core 502.5 - Process Failure error when deployed - logging issue dotnet core 2.1 app的“HTTP错误502.5 - 进程失败” - “HTTP Error 502.5 - Process Failure” for dotnet core 2.1 app 在未发布的完整 IIS 中运行 ASP.NET Core 应用程序会出现 502.5 错误 - Running ASP.NET Core application in full IIS without publishing gives 502.5 error HTTP错误502.5 - 尝试运行项目时出现进程失败 - HTTP Error 502.5 - Process Failure when trying to run my project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM