AppDomain recycles

Adding this for my own reference but if anyone else finds it useful then feel free to use it.

AppDomains – what are they?

An application domain is an application within a application pool; an application domain is loaded into the application pool when a user request triggers it. The application domain may load dlls, configuration files (.config), etc.

What causes an AppDomain to recycle then?

Application domains will recycle under the following conditions:

  1. Machine.config is touched or modified i.e. c:\windows\microsoft.net\framework[64]\v[1.1|2.0|3.0|3.5|4.0]\CONFIG\.
  2. The global web.config is touched or modified i.e. c:\windows\microsoft.net\framework[64]\v[1.1|2.0|3.0|3.5|4.0]\CONFIG\.
  3. The site local web.config is modified or touched (feature delegation can be a culprit here i.e. default docs, handler mappings); 
  4. Any application web.config is modified or touched.
  5. Any modifications to the App_[global_resources|local_resources|web_resources|data|code|browsers|themes] directories within the local site i.e. adding a file.
  6. Any modifications to the bin folder within the wwwroot i.e. adding a file.
  7. Adding folders within the application domain i.e. the root application could be wwwroot

NOTE: touching the file denotes opening it and making a change i.e. that could simply be adding a space to the end of the file.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.