Deployed .Net Core 3.1 Web app on Azure shows error HTTP Error 500.35 - ANCM Multiple In-Process Applications in same Process Deployed .Net Core 3.1 Web app on Azure shows error HTTP Error 500.35 - ANCM Multiple In-Process Applications in same Process azure azure

Deployed .Net Core 3.1 Web app on Azure shows error HTTP Error 500.35 - ANCM Multiple In-Process Applications in same Process


I ended up asking Microsoft about this error and how to resolve this on the Azure platform and they pointed out that the solution is to change your web application as well as any other virtual application deployed from "InProcess" hosting model to "OutOfProcess", you can find more information about what this means here but essentially to achieve this you need to add the following value to each project file (.csproj):

<PropertyGroup>  <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel></PropertyGroup>

After deployment on Azure verify the change has taken place by validating that your web.config has the following settings:

<?xml version="1.0" encoding="utf-8"?><configuration>  <location path="." inheritInChildApplications="false">    <system.webServer>      <handlers>        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />      </handlers>      <aspNetCore processPath="dotnet"                  arguments=".\MyApp.dll"                  stdoutLogEnabled="false"                  stdoutLogFile=".\logs\stdout"                  hostingModel="OutOfProcess" />    </system.webServer>  </location></configuration>