Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

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

0.00/5 (No votes)
20 May 2016 1  
Difference between AppPool and AppDomain

Introduction

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

References

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here