IIS AppDoman environment

  • Thread starter Thread starter Chris Bordeman
  • Start date Start date
C

Chris Bordeman

During an IIS page request or service call, is a new AppDomain created, or
is the main AppDomain for the application pool used?

If the latter, does that mean that an assembly .LoadFrom() is redundant on
subsequent requests?
 
Hi,

AppDomain is created on the first request, when it's not yet up - one per
virtual directory. After that it's reused (unless shutdown/restarted for
some reason when of course its restarted/created).

Once assembly is loaded, there's no need /(way) load it again until
AppDomain restarts when assemblies need to be loaded again.

Following article covers all you ever need to know:

A low-level Look at the ASP.NET Architecture
http://www.west-wind.com/presentations/howaspnetworks/howaspnetworks.asp
 
Exactly what I needed, thanks Teemu.

Teemu Keiski said:
Hi,

AppDomain is created on the first request, when it's not yet up - one per
virtual directory. After that it's reused (unless shutdown/restarted for
some reason when of course its restarted/created).

Once assembly is loaded, there's no need /(way) load it again until
AppDomain restarts when assemblies need to be loaded again.

Following article covers all you ever need to know:

A low-level Look at the ASP.NET Architecture
http://www.west-wind.com/presentations/howaspnetworks/howaspnetworks.asp

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
 
Back
Top