IIS AppDoman environment

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?
 
T

Teemu Keiski

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
 
C

Chris Bordeman

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top