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.netcore framework
Web App path mapping like bellow

/ - site/wwwroot - dotnetcore3.1 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

.NET Foundation Website | Blog | Projects | Code of Conduct