Troubleshooting HTTP error 500.30: ANCM in-process startup failed
In ASP.NET Core 2.2, IIS in-process hosting significantly improves performance. However, enabling this feature in an ABP project may trigger HTTP error 500.30: ANCM in-process startup failed.
Compatibility issues with ABP
Unfortunately, this error usually occurs because the current version of ABP may not be fully compatible with the in-process hosting model. It's worth checking if ABP vNext supports in-process hosting.
ANCMV2 component requirements
Additionally, IIS in-process hosting relies on the ANCMV2 component. If the target deployment machine is missing ANCMV2, in-process hosting will fail. In this case, install the dotnet hosting package onto the machine, or downgrade to AspNetCoreModule.
Out-of-process hosting as an alternative
If in-process hosting is still a problem, consider switching to out-of-process hosting by modifying the web.config file as follows:
<code class="language-xml"><propertyGroup> <targetFramework>netcoreapp2.2</targetFramework> <aspNetCoreHostingModel>OutOfProcess</aspNetCoreHostingModel> <aspNetCoreModuleName>AspNetCoreModule</aspNetCoreModuleName> </propertyGroup></code>
The above is the detailed content of How to Resolve HTTP Error 500.30: ANCM In-Process Start Failure in ASP.NET Core 2.2 with ABP?. For more information, please follow other related articles on the PHP Chinese website!