HTTP Error 500.34 - ANCM Mixed Hosting Models Not Supported Azure WebApp

ramakrishna p 1 Reputation point
2020-05-05T06:47:40.667+00:00

HTTP Error 500.34 - ANCM Mixed Hosting Models Not Supported azure web app,

I'm using Visual Studio 2019, the application successfully compile and working mode locally after hosting to azure web app failed to start the website

I Hosted multiple websites in One azure Web app using dotnetcore framework and asp.net core framework

Web App path mapping like bellow

/ - site/wwwroot - dotnetcore web api application - Working Wihout any issue
/portal -site/wwwroot/portal - dotnetcore asp.net application - Getting Error

When we access the /portal application getting an error HTTP Error 500.34 - ANCM Mixed Hosting Models Not Supported

Verified the system event log for error messages

Log Message :

Failed to start application '/LM/W3SVC/59262167/ROOT/portal', ErrorCode '0x80004005'.
Process Id: 8644.
File Version: 13.1.19331.0. Description: IIS ASP.NET Core Module V2. Commit: 62eee6e6d21c95668a9e9529dce6562cc6c9f3bf

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,289 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 19,921 Reputation points
    2020-05-05T09:54:17.823+00:00

    @ramakrishna p Thanks for asking question! If you are receiving HTTP Error 500.34 - ANCM Mixed Hosting Models Not Supported it means that the worker process can't run both an in-process app and an out-of-process app in the same process, Its recommended to run apps in separate IIS application pools or you can create a new dedicated App Pool.

    Reference : https://video2.skills-academy.com/en-us/aspnet/core/test/troubleshoot-azure-iis?view=aspnetcore-3.1

    1 person found this answer helpful.