Click here to Skip to main content
15,123,851 members
Articles / Web Development / ASP.NET
Posted 20 May 2016


6 bookmarked

Difference between Application Pool (AppPool) and Application Domain (AppDomain).

Rate me:
Please Sign up or sign in to vote.
4.12/5 (10 votes)
20 May 2016CPOL1 min read
Difference between AppPool and AppDomain


The Application Pool a.k.a. AppPool and Application Domain a.k.a. AppDomain are two separate entities with more or less the same functionality but at different levels and from different providers.

Points of Interest

  1. Application Domain is an ASP.NET concept which provides isolation for each ASP.NET application. Application Pool is an IIS concept which also provides isolation but at the process level.
  2. Application Domain is available only for ASP.NET applications. Application Pool is available for both ASP.NET and non-ASP.NET applications.
  3. Each ASP.NET application has its own Application Domain. One Application Pool can be shared by more than one applicaton.
  4. You do not have much control on creating an Application Domain for your application. You can configure the Application Pool using the IIS manager.
  5. You can edit and save the web.config file to recreate the Application Domain. You can recycle the Application Pool in the IIS manager.

The following diagram will give you a better understanding of how each application uses the Application Pool and the Application Domain.

Application A and B are both ASP.NET applications while application C is a non ASP.NET. All the 3 applications are hosted in IIS (6.0 or later). Application A and B will have their own Application Domain while Application C will not have an Application Domain as it is not an ASP.NET application. All the 3 applications can have the same Applicaton Pool but in the diagram below I have configured Application Pool named App-Pool-A for Application A and another Application Pool named App-Pool-BC for Applications B and C.

Application Pool and Application Domain



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Kiran K Kadam
Web Developer
No Biography provided

Comments and Discussions

GeneralMy vote of 4 Pin
Dmitriy Gakh21-May-16 1:08
professionalDmitriy Gakh21-May-16 1:08 
GeneralRe: My vote of 4 Pin
Kiran K Kadam21-May-16 2:01
MemberKiran K Kadam21-May-16 2:01 
GeneralRe: My vote of 4 Pin
Dmitriy Gakh21-May-16 2:38
professionalDmitriy Gakh21-May-16 2:38 
GeneralMy vote of 5 Pin
Camilo Reyes20-May-16 13:41
professionalCamilo Reyes20-May-16 13:41 
GeneralRe: My vote of 5 Pin
Kiran K Kadam20-May-16 16:38
MemberKiran K Kadam20-May-16 16:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.