Hello @Masali, Sangamesh !
The error HTTP Error 500.35 - ANCM Multiple In-Process Applications in same Process
occurs when you are trying to host multiple in-process ASP.NET Core applications in the same IIS Application Pool.
I can suggest 2 possible solutions :
I would check the Feature of Virtual Apps on Azure Web App :
From https://stackoverflow.com/questions/46130519/app-services-virtual-applications-and-directories :
You could keep your web sites in separate projects and use the ‘virtual directories and applications’ settings in Azure to publish the two different projects under the same site.
Goto web app -> Settings -> Application Settings -> Virtual applications and directories
In Web Apps, each site and its child applications run in the same application pool. If your site has multiple child applications utilizing multiple application pools, consolidate them to a single application pool with common settings or migrate each application to a separate web app.
ALSO
Another possible solution could be to Change the hosting model of your ASP.NET Core applications to Out-of-Process.
Out-of-process hosting model
To configure an app for out-of-process hosting, set the value of the <AspNetCoreHostingModel>
property to OutOfProcess
in the project file (.csproj
):
XML
<PropertyGroup>
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
</PropertyGroup>
In-process hosting is set with InProcess
, which is the default value.
The value of <AspNetCoreHostingModel>
is case insensitive, so inprocess
and outofprocess
are valid values.
Kestrel server is used instead of IIS HTTP Server (IISHttpServer
).
For out-of-process, CreateDefaultBuilder
calls UseIISIntegration to:
- Configure the port and base path the server should listen on when running behind the ASP.NET Core Module.
- Configure the host to capture startup errors.
I hope this helps!
Kindly mark the answer as Accepted and Upvote in case it helped!
Regards