Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

HTTP Error 500.30 - ANCM In-Process Start Failure - .NET Core

0.00/5 (No votes)
29 Nov 2020 1  
Usually, you will see this error when you run your project from Visual Studio. This error itself says that it's a start failure while running your project from Visual Studio.
This is very generic error and the error itself says that this is Start Failure when you are running your project with InProcess selection. You will get an idea of how to fix this quickly when you are running from Visual Studio and how to find the root cause of the error.

Easy Fixes

Mostly developers find the easiest and quicker way to fix any error, so before going in depth, I will directly tell you some solutions. After fixing the issue, if you are interested to know more details, please go through this article.

This is very generic error being thrown by .NET Core. That's why there would not be any particular solution, but still few solutions are there as listed below, which you can try and see if that fixes your issue or not.

  1. If you are running your application from Visual Studio and you are facing this error, then right click on your project file in solution explorer and click on "Edit Project File" (if you can't see this option, go to your folder and edit your project file in any editor), it will open .csproj file (if you are using C#) in your Visual Studio.
      1  <PropertyGroup>
      2  	<TargetFramework>netcoreapp2.2</TargetFramework>
      3  	<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
      4  </PropertyGroup>
    

    In your .csproj file, change AspNetCoreHostingModel value from InProcess to OutProcess and re-run your application.

  2. If it still doesn't resolve your issue, add the below code in <PropertyGroup>:
      1  <AspNetCoreModuleName>AspNetCoreModule</AspNetCoreModuleName>
    
  3. If you don't find <PropertyGroup> in your .csproj file, then right click on your Project in solution explorer, click on Properties, go to Debug section, you will find Hosting Model option under Web Server Settings, select "Out Of Process", save it and re-run your project.

What Does This Error Mean?

Let's see now what this error means. This is a very generic error and the error itself says that this is "Start Failure" when you are running your project with "InProcess" selection from Visual Studio. So there could be few reasons why this error occurs.

ASP.NET Core 2.2 application runs on IIS Express by default from Visual Studio. To enable OutProcess hosting, the csproj element AspNetCoreHostingModel is added to set the hostingModel in .csproj file or web.config file. Also, the web.config points to a new module called AspNetCoreModuleV2 which is needed for InProcess hosting but for OutProcess hosting, AspNetCoreModule is needed.

Server on which you are deploying doesn't have ANCMV2, you can't use IIS InProcess hosting. In that case, the right behavior is to either install the dotnet hosting bundle on your server or downgrade to the AspNetCoreModule.

How to Find the Root Cause?

If you want to find the root cause of your error, then either you can look at "Event Viewer" or you can enable standard error log "stdoutLogEnabled="true"" (if your project doesn't contain web.config, then add it manually). Now run your project and check log and you will find the root cause.

History

  • 29th November, 2020: Initial version

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here