Fix the Error “http error 502.5 – ancm out-of-process startup failure”

ASP.NET Core is an open-source, high-performance, cross-platform, and free framework for creating fast and secure cloud-based applications, modern applications, and internet-connected applications. Programmers all over the world use core for building IoT apps, web apps as well as mobile backends. It is a flexible framework that allows you to design the applications the way you are planning. It permitted programmers and developers to runtime components, compilers, and APIs. It easily runs on different operating systems so you can easily make it work on the system you are using. When working with ASP.NET Core, you may encounter “http error 502.5 – ancm out-of-process startup failure”.

When you face this error, don’t think it is the end of the program you are working on as there are always a few solid fixes that can tackle the error warning. We provide you with the best possible solutions to make the error go away. Let’s figure out how it occurs

How the error pops up

You get the error warning when you try to run the application locally after updating to ASP.NET Core 2.2. This is what you get in return

HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure

How To Handle the Error “http error 502.5 – ancm out-of-process startup failure”

Due to many reasons, you may get an error warning. If your package is outdated, you can face the error. The absence of an ASP.NET Core runtime hosting bundle on the server and set TRUE to 32-bit apps in the pool app is also the cause of the error message. We have a few amazing solutions that can help you get rid of the error warning efficiently.

Solution 1

To solve the error, the first thing you need to do is to switch or change the architect from win-64 to win-86. Sometimes the issue is popping up because of the architect. Once you switch the architect, publish it, but before that, make sure to enable 32-bit apps in your IIS manager. To enable it, follow the below steps

  • Press right-click on the Application Pool and tap on the ‘Advance Settings’ or you can also click on the ‘Action Pane’.
  • Make True to be set on the ‘Enable 32-bit Applications. You can only set it true if you are willing to have your application pool to be spawn in a 32-bit.

You need to remember to remove existing files that are published.

Solution 2

Another way to get the issue resolve is to make sure you install .Net Core 2.2 SDK when you already updated Nuget packages to 2.2 .NET Core. You can install it from the official website. Once you downloaded and installed successfully, open CMD as administrator and type a ‘net stop was /y’ and then ‘net start w3svc’. It solves the error warning.


In this post, we highlighted solutions that can simply solve the error “http error 502.5 – ancm out-of-process startup failure”. You can try any of those to tackle the error.

I wish you luck!

Leave a Reply

Your email address will not be published. Required fields are marked *