We have two project, one contains Web API built on .net core 2.2.6 and Angular 8 Single Page Application integrated in .net core 2.2.6. We have deployed both on IIS 7, Web API project is working fine but Angular 8 SPA is giving an error "HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure".
Tried multiple Solutions like clearing up node modules, restarting server, deploying on different machine, changing the port number
Please suggest some solution. You help will appreciated.
This error usually occurs when trying hosting dotnet core apps in IIS using ASP.NET Core Module with in-process mode. In my case there was conflict between dotnet core Runtime and aspnet core module. First check dotnet core Runtime version be equal with installed Hosting Bundle version on your IIS. Run:
dotnet --info
Look for the section .NET Core runtimes installed on the output. This should be the same with Hosting Bundle that you'v installed. Otherwise try install same .NET Core runtime.
Also other cases has numerated in this (HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure after upgrading to ASP.NET Core 2.2). I'v supposed you know Hosting models for dot net core apps in IIS. See this doc (https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.2)