473,505 Members | 13,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS AppDoman environment

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?

Jun 27 '08 #1
2 996
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/presentatio...spnetworks.asp

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Chris Bordeman" <ch***********@hotmail.comwrote in message
news:Ov**************@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?

Jun 27 '08 #2
Exactly what I needed, thanks Teemu.

"Teemu Keiski" <jo****@aspalliance.comwrote in message
news:#H**************@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/presentatio...spnetworks.asp

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Chris Bordeman" <ch***********@hotmail.comwrote in message
news:Ov**************@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?

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
3907
by: Vijay Kumar R Zanvar | last post by:
Hi clc, I want to know few examples of freestanding environments. -- "There's money in this case, Watson," he continued, glancing out of the window, "if there is nothing else." - A Scandal...
4
4200
by: Bill Davidson | last post by:
All: I've found the 'Environment.GetEnvironmentVariable()' method; but how do I create and/or set an environment variable? Thanks, Bill
4
39045
by: | last post by:
Hi all, I am trying to append a certain string to the PATH environment variable programmatically. I am able to read what is in the variable using the System.Environment method...
10
2252
by: Edward | last post by:
I've just taken over maintaining a system from a colleague who has left. I find the following line in her code: Dim params(2) As SqlClient.SqlParameter params(0) = New...
6
16274
by: Matt | last post by:
Is there a way to retrieve the Windows Environment Variables (Such as User ID) with Javascript in IE?
6
3785
by: Fuzzyman | last post by:
Hello all, I would like to set a Windows Environment variable for another (non-child) process. This means that the following *doesn't* work : :: os.environ = value In the ``win32api``...
11
6197
by: rossum | last post by:
I want to declare a const multi-line string inside a method, and I am having some problems using Environment.NewLine. I started out with: class foo { public void PrintStuff() { const...
0
1967
by: Joe HM | last post by:
Hello - I am putting together a little ConsoleApplication that is supposed to check for an Environment Variable and create it if it does not exist. I found some code that will add a new...
3
1995
by: smitty1e | last post by:
Just a fun exercise to unify some of the major input methods for a script into a single dictionary. Here is the output, given a gr.conf file in the same directory with the contents stated below: ...
1
2534
by: replysonika | last post by:
Hello, I run a Java app with subprocess from Python script. This python script is called from another Python Wrapper. python = subprocess.Popen(, stdout=subprocess.PIPE,...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.