Home > Backend Development > C++ > How to Fix ASP.NET Core In-Process Hosting Error 500.30?

How to Fix ASP.NET Core In-Process Hosting Error 500.30?

Susan Sarandon
Release: 2025-01-08 20:37:40
Original
854 people have browsed it

How to Fix ASP.NET Core In-Process Hosting Error 500.30?

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

  • Make sure AspNetCoreHostingModel is set to InProcess.
  • Verify that the web.config file contains the necessary modules pointing to AspNetCoreModuleV2.

Target Machine Compatibility

  • Determine whether the target machine has IIS in-process hosting (ANCMV2) enabled. If not enabled then:

    • Install the .NET hosting bundle on the target machine.
    • Downgrade AspNetCoreModule in project configuration.

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>
Copy after login

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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template