All Collections
Webland Hosting
Windows Server
Multiple ASP.Net Core Applications
Multiple ASP.Net Core Applications

How can I run multiple ASP.Net Core applications?

Boris Beeli avatar
Written by Boris Beeli
Updated over a week ago

Basically, there are two ASP.NET Core Hosting Models:

InProcess and OutOfProcess.

Only one ASP.Net Core Application InProcess can be run per web server.

If you want to use several Applications InProcess, you must run them in their own web servers, i.e. use a separate web hosting for each application.

For the ASP.Net Core Hosting Model OutOfProcess, however, this restriction does not exist. You can run multiple Applications OutOfProcess in the same hosting.

You can adjust this yourself in your web.config file, for example as follows:

<configuration>

<location path="." inheritInChildApplications="false">

<system.webServer>

<aspNetCore processPath="dotnet" arguments=".\admin.api.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="outofprocess" />

</system.webServer>

</location>

</configuration>

Did this answer your question?