Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP Error 500.30 - ANCM In-Process Start Failure

I was experimenting with a new feature that comes with .net core sdk 2.2 that is supposedly meant to improve performance by around 400%.

Impressive so I tried it out on my ABP (ASP.NET Boilerplate) project

Template asp.net core mvc 4.0.2.0

I added the following to my web.mv.cproj file

  <PropertyGroup>     <TargetFramework>netcoreapp2.2</TargetFramework>     <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>   </PropertyGroup>    <ItemGroup>     <PackageReference Include="Microsoft.AspNetCore.App" />     <PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" />   </ItemGroup> 

Unfortunately I do not think this version of the ABP framework is compatible as the project simply fails to run and throws: (eventually)

HTTP Error 500.30 - ANCM In-Process Start Failure

I checked the logs after setting stdoutLogEnabled="true" in the web.config and re-trying - but no entries.

Has anybody had any success running the current ABP against a asp.net core in process setup?

I'm thinking this may be something only available in ABP vNext.

like image 992
Jazb Avatar asked Dec 17 '18 08:12

Jazb


People also ask

How do I fix ANCM in process start failure?

The easiest way to fix this error is to re-publish your code, but make sure you tick options “Remove additional files at destination“. This will ensure that Visual Studio's web deploy process will delete all existing files from the Web App before copying over the new code files.

How to fix HTTP error 500 30 ASP net Core App failed to start?

Check if the proper version of the ASP.NET Core Hosting Bundle is installed on the target machine (and install it if it's missing). Azure Key Vault lack of permissions. If you're using the Azure Key Vault, check the access policies in the targeted Key Vault to ensure that the correct permissions are granted.


1 Answers

In ASP.NET Core 2.2, a new Server/ hosting pattern was released with IIS called IIS InProcess hosting. To enable inprocess hosting, the csproj element AspNetCoreHostingModel is added to set the hostingModel to inprocess in the web.config file. Also, the web.config points to a new module called AspNetCoreModuleV2 which is required for inprocess hosting.

If the target machine you are deploying to doesn't have ANCMV2, you can't use IIS InProcess hosting. If so, the right behavior is to either install the dotnet hosting bundle to the target machine or downgrade to the AspNetCoreModule.

Source: jkotalik (Github)

Try changing the section in csproj (edit with a text editor)

  <PropertyGroup>     <TargetFramework>netcoreapp2.2</TargetFramework>     <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>   </PropertyGroup> 

to the following ...

 <PropertyGroup>     <TargetFramework>netcoreapp2.2</TargetFramework>     <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>     <AspNetCoreModuleName>AspNetCoreModule</AspNetCoreModuleName>  </PropertyGroup> 

Source (Github)

like image 150
Adam Mikulski Avatar answered Sep 21 '22 13:09

Adam Mikulski