raymond.wen:Hi, may be it's really a bug, pls check this article up:
http://www.vikramlakhotia.com/Deleting_Directory_in_ASPnet_20.aspx
Unfortunately, it's not a bug - its a "feature".
In ASP.NET 2.0 the web application will recycle if a subdirectory is added or deleted. This prevents stale content from appearing, but it also means the application will restart and flush out anything in the cache or the session. If you are not serving content from the directory then I'd suggest just moving it outside of the web application directory.