Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 09, 2012 05:28 AM by Young Yang - MSFT
May 02, 2012 01:00 PM|LINK
I have directory with following structure
I need to delete User_related_folder when user logout. But when i do that my application restart. Why does it happend and is it possible to fix that?
My application working under aplication pool with .net 4.0 in integrated mode
May 02, 2012 01:18 PM|LINK
delete the files, not the folder itself.
May 02, 2012 01:56 PM|LINK
I need to know, why it works so. As i see for in couple of articles and docs - that it allowed to create and delete subfolders for mvc3 application
May 02, 2012 02:15 PM|LINK
that it allowed to create and delete subfolders for mvc3 application
If you put under bin, that the application restarts ( asp.net behaviour, not mvc only)
But, as a caution, I will do delete only the files
May 02, 2012 02:25 PM|LINK
But I do not put it under bin directory. And I should have such directory for each customer. so it could be hundreds of empty folders. So it's quite bad solution.
May 02, 2012 02:35 PM|LINK
put under App_Data.
Does it restart?
May 02, 2012 02:45 PM|LINK
Yes. It restarts. But if I do not delete folder all works fine.
May 05, 2012 10:10 AM|LINK
I was unable to reproduce this.
May 09, 2012 05:28 AM|LINK
Actually I couldnt reproduce your senario, so I just could tell you the general reason why the application domain recycle.
Hope this helpful