title: Application_End fires after Application_Start in global.asax when restarting
body: <p>We've noticed that Application_End for the old app domain can sometimes fire long after Application_Start for the new app domain when restarting a website.. We've seen delays of up to 45 seconds plus..  </p>
  
  <p>I'm guessing ASP.NET prioritizes the compilation and starting of the new app domain before unloading the old app domain..?</p>
  
  <p>I found this:
  <a href="http://msdn.microsoft.com/en-us/library/ms178473(v=vs.100).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms178473(v=vs.100).aspx</a></p>
  
  <p>But I can't really find any info about the delay between the old and new app domains.. Can anyone shed some light on this..?</p>
  
  <p>Is it configurable..?</p>