In ASP.NET Core, in-process and out-of-process refer to how your application is hosted and run with respect to the web server (like IIS or Kestrel). Here's a clear breakdown:
In-Process Hosting
The ASP.NET Core app runs inside the IIS worker process (w3wp.exe).
No separate process for the Kestrel server is created.
Better performance due to avoiding reverse proxy overhead.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
In ASP.NET Core, in-process and out-of-process refer to how your application is hosted and run with respect to the web server (like IIS or Kestrel). Here's a clear breakdown:
In-Process Hosting
w3wp.exe).Configuration:
In your
.csprojfile:Request Flow:
Pros:
Cons:
Out-of-Process Hosting
dotnet.exe).Configuration:
In your
.csprojfile:Request Flow:
Pros:
Cons:
Comparison Table
w3wp.exe(IIS worker)dotnet.exeInProcessOutOfProcessWhen to Use Which?