Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am bit confused. Is there only one application domain for every single ASP.NET Web Application or there can be anywhere between 1 to 100 application domains present in a single application pool of a web application

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

An Application Domain is the logical and physical boundary created around every .NET application by the Common Language Runtime (CLR).

  1. One web application runs in a single Application Domain but may communicate via web/remote services with applications in other domains.

  2. The CLR may allow multiple .NET applications to be run in a single Application Domain, so it means that an Application Domain may be shared by different applications which can in that case communicate with each other "directly".

Most times though, the relationship between a web application and an application domain is one-to-one.

You may read the following article (very short, but nicely written) which explains what are Application Domains and how they may be useful: http://www.beansoftware.com/NET-Tutorials/Application-Domain.aspx.

Also, on his blog, Scott Forsyth explains the differences between an application (IIS term), a web application (ASP.NET term) and application domains.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.