ASP.NET Core Interview Question #214

What is IIS out-of-process hosting for ASP.NET Core?

Testing, Deployment & Hosting Senior Advanced

Quick Interview Answer

With IIS out-of-process hosting, the ASP.NET Core application runs in a separate process using Kestrel, while the ASP.NET Core Module in IIS forwards requests to that process.

Detailed Explanation

With IIS out-of-process hosting, the ASP.NET Core application runs in a separate process using Kestrel, while the ASP.NET Core Module in IIS forwards requests to that process.

This separates the IIS worker process from the application process. It can be required or useful in certain hosting arrangements, but it introduces a local proxy boundary between IIS and Kestrel.

The hosting model should be selected based on application and hosting requirements rather than changed without understanding the platform implications.

Code Example

<aspNetCore processPath="dotnet"
            arguments=".\MyApp.dll"
            hostingModel="outofprocess" />