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?

Re: IIS AppDoman environment by Teemu

Teemu
Sun May 11 04:39:20 CDT 2008

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


"Chris Bordeman" <chrisbordeman@hotmail.com> wrote in message
news:OvUm5KzsIHA.1316@TK2MSFTNGP06.phx.gbl...
> 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?



Re: IIS AppDoman environment by Chris

Chris
Sun May 11 15:04:16 CDT 2008

Exactly what I needed, thanks Teemu.

"Teemu Keiski" <joteke@aspalliance.com> wrote in message
news:#HV4mr0sIHA.4476@TK2MSFTNGP06.phx.gbl...
> 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
>
>
> "Chris Bordeman" <chrisbordeman@hotmail.com> wrote in message
> news:OvUm5KzsIHA.1316@TK2MSFTNGP06.phx.gbl...
>> 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?
>
>