title: ASP.Net running in a custom appdomain
body: <p>I'd like to run my ASP.Net application in a <strong>custom</strong> AppDomain, that i would create programmatically.
  The requests must be executed within that custom AppDomain, and not the default one.</p>
  
  <p><strong>Why</strong> would someone do that ?</p>
  
  <p>The need is to customize the <strong>AppDomain settings</strong> depending on the environment. Let's say the application is running on a dev machine, on a production server, in the cloud or whatever, I need to 'intercept' the first call to create the running AppDomain as needed. And I really need to do that <strong>programmatically</strong> : I don't want to perform configuration on the running plateform, the code have to be smart enought to adapt itself.</p>
  
  <p>How I can detect the environment and what customization are needed is not the point here.</p>
  
  <p>Thanks for your ideas !</p>