. Advertisement .
..3..
. Advertisement .
..4..
I get an error
HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure
when trying to run the application (locally of course). After upgrading my project to ASP.NET Core 2.2. How to fix the http error 502.5 – ancm out-of-process startup failure error? Please give me some advice.
The cause:
After researching in a period of time, I find that your error happens due to several reasons below:
1, One of your packages which you have is out of date with the application.
2, There is a mismatched in your environment because you didn’t set up ASP.NET Core Runtime Hosting Bundle on your server.
3, Enable 32-Bit Applications is being set to True in your Application Pool. It’s also a reason which cause your error.
Solution:
First, you have to update the package which is out of date. Then, you can see the message that solved it for you by manually running dotnet.exe with the project dll.
Or you can do this to solve your error:
In my case, I had to upgrade some nuget packages to netcore 2.2. However, I didn’t have net core2.2 sdk installed so I went to the net core website to download it. Next, I did a
net stop was /y
, then anet start w3svc
in CMD as administrator. Problem solved for me.