0

I am running an ASP.NET Web API application for .NET Framework 4.7.2, and when I try to run it in on my Windows 11 dev machine via IIS Express, the app is crashing with the following error:

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

Common solutions to this issue:
The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port

Now AFAIK the ANCM module is only used for running ASP.NET Core apps on IIS, so why is it causing issues with a .NET Framework app? Are there any switches I can set in e.g. my .csproj file to ensure it doesn't try to load ANCM?

2
  • It’s a global module so loaded into all worker processes. You need to go to Windows event log and learn from the errors. That should tell what’s wrong with ANCM. You might also remove all ANCM lines from IIS Express config file if you know what they are. Commented Apr 3 at 9:47
  • Check you ApplicationPool settings in IIS. Ensure that you have the correct .NET CLR Version set for the pool. Commented May 14 at 13:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.