Friday, June 05, 2009

Deleting ASP.NET 2.0 Application Sub-Directories Shuts Down the AppDomain

This wrecked my mind for about 4 hours today. As the title suggests deleting a sub-directory shuts down the AppDomain. I really wish it would have thrown an exception or something helpful. Instead I thought I was doing something wrong when my Session would suddenly go blank. This forum post finally revealed the sneaking problem:
http://forus.asp.net/t/1287418.aspx
and this one explains some solutions that I did not implement:
http://blogs.msdn.com/toddca/archive/2005/12/01/499144.aspx