liveBook · Manning

Application pool

As explained in ASP.NET Core in Action, 3e

An application pool in IIS is an isolated application process context in which one or more hosted applications run.

An application pool in IIS represents an application process. Assigning each application to its own pool keeps hosted applications isolated from one another. section 27.2.1

ASP.NET Core applications should use a No Managed Code pool. The native IIS AspNetCore Module runs inside the pool and starts the .NET 7 runtime. section 27.2.1

Configure an ASP.NET Core application pool in IIS:

  • Install the Windows Hosting Bundle, including the IIS AspNetCore Module. section 27.2.1
  • Open IIS, right-click Application Pools, and choose Add Application Pool. section 27.2.1
  • Give the pool a name, such as dotnet7, and select No Managed Code for the .NET CLR version. section 27.2.1
  • Assign the new pool when adding the IIS website, alongside the published application folder and site URL. section 27.2.1

A local IIS deployment

Create a pool named dotnet7 with No Managed Code, assign it to a website pointing at the published application folder, and bind the site to http://localhost:81. section 27.2.1

Figure 27.5 Creating an app pool in IIS for your ASP.NET Core app. The .NET CLR version should be set to No Managed Code.
CH27_F05_Lock3

Use the IIS configuration figure to verify that the application pool's .NET CLR version is set to No Managed Code. section 27.2.1

How ASP.NET Core in Action, 3e covers it

How deep it goes
Explains process isolation and gives creation and website-assignment steps, but does not cover broader IIS administration.
Examples
Uses a dotnet7 pool, a published application folder, and a localhost:81 IIS website.
What it assumes
Assumes IIS and a published application; requires the Windows Hosting Bundle when running ASP.NET Core on Windows IIS.
What you can do after
Operate/configure an IIS application pool and attach it to an ASP.NET Core website.
How it connects
Connects application pools with IIS websites, reverse proxies, the IIS AspNetCore Module, and published applications.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ASP.NET Core in Action, 3e. The section links point to the parts of the book it draws on.