ASP.NET Core In-Process Hosting: Troubleshooting HTTP Error 500.30
In ASP.NET Core 2.2, when trying to use IIS in-process hosting, you may get an "HTTP Error 500.30 - ANCM in-process startup failed" error due to incompatibility with older versions of ASP.NET Boilerplate (ABP).
To resolve this issue, please confirm the following points:
Hosted model configuration
Target Machine Compatibility
Determine whether the target machine has IIS in-process hosting (ANCMV2) enabled. If not enabled then:
Project modification (optional)
If the error persists, modify the web.csproj file to explicitly set AspNetCoreHostingModel to OutOfProcess and include AspNetCoreModuleName for compatibility with older ABP versions:
<PropertyGroup> <TargetFramework>netcoreapp2.2</TargetFramework> <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel> <AspNetCoreModuleName>AspNetCoreModule</AspNetCoreModuleName> </PropertyGroup>
The above is the detailed content of How to Fix ASP.NET Core In-Process Hosting Error 500.30?. For more information, please follow other related articles on the PHP Chinese website!