question

ramakrishnap-2750 avatar image
0 Votes"
ramakrishnap-2750 asked azure-cxp-api edited

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

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-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SnehaAgrawal-MSFT avatar image
1 Vote"
SnehaAgrawal-MSFT answered SnehaAgrawal-MSFT commented

@ramakrishnap-2750 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://docs.microsoft.com/en-us/aspnet/core/test/troubleshoot-azure-iis?view=aspnetcore-3.1

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking in to see if the above answer helped . Let me know if there are still any additional issues we can help with.

If the above answer was helpful, kindly "Accept" and/or ‘Vote as helpful’ the post for benefiting the other users with a similar issue.

0 Votes 0 ·