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

/ / 0 Comments

Http error 502.5 process failure : Every developer while developing any application, just hate the error screen. It will become nightmare for developer if the error message was not useful. As many of us Dotnet developers have faced this issue when they are running Asp.net Core application.

The error message is not much apparent, also this error ANCM Out-Of-Process Startup Failure comes in various scenarios.

I face this error message in two different cases which are as follow:

  1. Migrating application to Asp.net core 2.2
  2. Incorrect setting in appsettings.json at LogLevel

Error Screen:


Case 1: Migrating application to Asp.net core 2.2

I have migrated one of my Asp.net core from version 2.1 to Asp.net core 2.2. Well previously same application was running successfully on the local machine, but after migration, it stopped working and gives this error message.

So after quick research, I figured out the problem is not with the application, but with .NET Core Runtime 2.2.5, which is not installed.

Using the below command in cmd prompt, you can check which version of .NET CORE Runtime is installed.

 dotnet --list-runtimes 

Heres list of .net core runtime installed when the error occurs as shown in the below image.


Now after installing .NET Core Runtime 2.2.5 from here and run the same cmd displays the list of all installed version.


As you can see now .NET Core Runtime 2.2.5 is added, which previously not available on the local machine. Now when I run my newly migrated Asp.net core application it runs successfully, and the error got fixed.

Case 2: Incorrect setting in appsettings.json at LogLevel

In asp.net core instead of web.config we use appsettings.json file. It's an application configuration file used to store configuration settings such as database connections strings, or any other global variables, also it has a LogLevel setting.


In my case it is set as warn instead of Warning, hence it displays an error message as HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure. By just modifying appsettings.json file i.e change value to Warning solved this error.

These 2 scenarios I faced and fixed. If you face same error message with different reason, pls share with us will keep update this.

Thank you for reading, pls keep visiting this blog and share this in your network. Also, I would love to hear your opinions down in the comments.

PS: If you found this content valuable and want to do a favor, then Buy me a coffee

Subscribe to our newsletter

Get the latest and greatest from Codepedia delivered straight to your inbox.


Post Comment

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

Comments