SOLVED | HTTP Error 500.0 – ANCM In-Process Handler Load Failure
Sometimes when you are trying to deploy a .NET Core App into an IIS server you may encounter an issue like this when you are trying to access the website. The most common reasons of this error are
- The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found
- The in-process request handler, Microsoft.AspNetCore.Server.IIS was not referenced in the application
- ANCM could not find dotnet
Solution for the Error:
If you get an error similar to the error like above then to solve this issue, try to see whether you are building the application with correct .NET version say .NET6 or .NET 7 etc., This error might occur when the ANCM is not able to find the required .NET version needed by my application. In my case just building the application with runtime as “winx-64” solved the issues, whereas previously I was trying to build the application with “win10-64”.
So check the runtime, framework and other parameters before going in for a deep-dive on issues like this with .NET application.