Toutes les collections
Webland Hébergement
Windows Server
ASP.NET Core Hosting Model InProcess OutOfProcess
ASP.NET Core Hosting Model InProcess OutOfProcess

Comment utiliser plusieurs applications ASP.NET InProcess ou OutOfProcess?

P
Écrit par Philippe Udry
Mis à jour il y a plus d’une semaine

Il existe en principe 2 modèles d'hébergement ASP.NET Core: InProcess et OutOfProcess.

Une seule application ASP.Net Core InProcess peut être exploitée par serveur web.

Si vous souhaitez utiliser plusieurs Applications InProcess, vous devez les exploiter dans vos propres serveurs web, c'est-à-dire utiliser un hébergement web distinct pour chaque application.

En revanche, cette restriction n'existe pas pour le modèle d'hébergement ASP.Net Core OutOfProcess.

Vous pouvez exploiter plusieurs applications OutOfProcess dans le même hébergement.

Vous pouvez adapter cela vous-même dans votre fichier web.config, par exemple comme suit:

<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>

Avez-vous trouvé la réponse à votre question ?