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.
"And whoever is removed away from the Fire and admitted to Paradise, he indeed is successful." (The Holy Quran)
Excellent Windows VPS Hosting Imran Baloch MVP, MVB, MCP, MCTS, MCPD
Actually I couldnt reproduce your senario, so I just could tell you the general reason why the application domain recycle.
Machine.Config, Web.Config or Global.asax are modified
The bin directory or its contents is modified
The number of re-compilations (aspx, ascx or asax) exceeds the limit specified by the <compilation numRecompilesBeforeAppRestart=/> setting in machine.config or web.config (by default this is set to 15)
The physical path of the virtual directory is modified
phoen1x
0 Points
4 Posts
IIS7.5 restart MVC3 application when delete subdir
May 02, 2012 01:00 PM|LINK
I have directory with following structure
root
tempfiles
User_related_folder
preview1.jpg
preview2.jpg
preview3.jpg
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
ignatandrei
All-Star
137670 Points
22146 Posts
Moderator
MVP
Re: IIS7.5 restart MVC3 application when delete subdir
May 02, 2012 01:18 PM|LINK
delete the files, not the folder itself.
phoen1x
0 Points
4 Posts
Re: IIS7.5 restart MVC3 application when delete subdir
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
ignatandrei
All-Star
137670 Points
22146 Posts
Moderator
MVP
Re: IIS7.5 restart MVC3 application when delete subdir
May 02, 2012 02:15 PM|LINK
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
phoen1x
0 Points
4 Posts
Re: IIS7.5 restart MVC3 application when delete subdir
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.
ignatandrei
All-Star
137670 Points
22146 Posts
Moderator
MVP
Re: IIS7.5 restart MVC3 application when delete subdir
May 02, 2012 02:35 PM|LINK
put under App_Data.
Does it restart?
phoen1x
0 Points
4 Posts
Re: IIS7.5 restart MVC3 application when delete subdir
May 02, 2012 02:45 PM|LINK
Yes. It restarts. But if I do not delete folder all works fine.
imran_ku07
All-Star
45864 Points
7713 Posts
MVP
Re: IIS7.5 restart MVC3 application when delete subdir
May 05, 2012 10:10 AM|LINK
I was unable to reproduce this.
Excellent Windows VPS Hosting
Imran Baloch MVP, MVB, MCP, MCTS, MCPD
Young Yang -...
All-Star
21742 Points
1825 Posts
Microsoft
Re: IIS7.5 restart MVC3 application when delete subdir
May 09, 2012 05:28 AM|LINK
Hi
Actually I couldnt reproduce your senario, so I just could tell you the general reason why the application domain recycle.
Hope this helpful
Regards
Young Yang
Feedback to us
Develop and promote your apps in Windows Store