while deploying asp.net core application to iis , you may be encounter an error message like
HTTP Error 500.30 - ANCM In-Process Start Failure
Solutions: Asp.Net core has two hosting models: In-Process and OutProcess
This error means - The worker process fails. The app doesn't start.
The ASP.NET Core Module attempts to start the .NET Core CLR in-process, but it fails to start. The cause of a process startup failure can usually be determined from entries in the Application Event Log and the ASP.NET Core Module stdout log.
Common failure conditions:
- The app is misconfigured due to targeting a version of the ASP.NET Core shared framework that isn't present. Check which versions of the ASP.NET Core shared framework are installed on the target machine.
- Using Azure Key Vault, lack of permissions to the Key Vault. Check the access policies in the targeted Key Vault to ensure that the correct permissions are granted.
In other words,
Asp.Net Core requires hosting runtime to deploy asp.netcore application. you need to deploy Runtime as the same major version of your application.
for example: if your application based on asp.netcore 2.2, you need to install asp.netcore hosting runtime 2.2.0+.
Download it from Microsioft official site, searc your required version from there or you can find out the latest one from below location:
Install and Restart your application pool.