Last post May 09, 2012 05:28 AM by Young Yang - MSFT
May 02, 2012 01:00 PM|phoen1x|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|ignatandrei|LINK
delete the files, not the folder itself.
May 02, 2012 01:56 PM|phoen1x|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|ignatandrei|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|phoen1x|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|ignatandrei|LINK
put under App_Data.
Does it restart?
May 02, 2012 02:45 PM|phoen1x|LINK
Yes. It restarts. But if I do not delete folder all works fine.
May 05, 2012 10:10 AM|imran_ku07|LINK
I was unable to reproduce this.
May 09, 2012 05:28 AM|Young Yang - MSFT|LINK
Actually I couldnt reproduce your senario, so I just could tell you the general reason why the application domain recycle.
Hope this helpful