Application Pool Recycle - Bug or Feature

Sunday, 20 December 2009
Recently I solved a strange bug in our CMS application. We load our domain at Init time – using some xml. So, the first time the app run, it run perfectly; but after recycle, some assemblies could not be found in the AppDomain. I did some googling and I found this link: http://www.chrisvandesteeg.nl/2006/06/15/appdomain-recycle-different-from-real-restart/

It seems that IIS does not load the assemblies that aren’t used in a previous session. This is an undocumented optimization “feature” that cannot be turned off. For the moment I’ll check it as a feature, but I guess, as more and more people start using dependency injection, this will become surely a bug. :)

0 comments:

Post a Comment