IIS7.5 restart MVC3 application when delete subdirhttp://forums.asp.net/t/1799270.aspx/1?IIS7+5+restart+MVC3+application+when+delete+subdirWed, 09 May 2012 05:28:03 -040017992704961917http://forums.asp.net/p/1799270/4961917.aspx/1?IIS7+5+restart+MVC3+application+when+delete+subdirIIS7.5 restart MVC3 application when delete subdir <p>I have directory with following structure<br> root<br> &nbsp; &nbsp; &nbsp;tempfiles<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;User_related_folder<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;preview1.jpg<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;preview2.jpg<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;preview3.jpg<br> <br> 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?<br> <br> My application working under aplication pool with .net 4.0 in integrated mode</p> 2012-05-02T13:00:07-04:004961959http://forums.asp.net/p/1799270/4961959.aspx/1?Re+IIS7+5+restart+MVC3+application+when+delete+subdirRe: IIS7.5 restart MVC3 application when delete subdir <p>delete the files, not the folder itself.</p> <p></p> 2012-05-02T13:18:21-04:004962059http://forums.asp.net/p/1799270/4962059.aspx/1?Re+IIS7+5+restart+MVC3+application+when+delete+subdirRe: IIS7.5 restart MVC3 application when delete subdir <p>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</p> 2012-05-02T13:56:34-04:004962115http://forums.asp.net/p/1799270/4962115.aspx/1?Re+IIS7+5+restart+MVC3+application+when+delete+subdirRe: IIS7.5 restart MVC3 application when delete subdir <p></p> <blockquote><span class="icon-blockquote"></span> <h4>phoen1x</h4> that it allowed to create and delete subfolders for mvc3 application</blockquote> <p></p> <p>If you put under bin, that the application restarts ( asp.net behaviour, not mvc only)</p> <p>But, as a caution, I will do delete only the files</p> <p></p> 2012-05-02T14:15:26-04:004962150http://forums.asp.net/p/1799270/4962150.aspx/1?Re+IIS7+5+restart+MVC3+application+when+delete+subdirRe: IIS7.5 restart MVC3 application when delete subdir <p>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.</p> 2012-05-02T14:25:32-04:004962169http://forums.asp.net/p/1799270/4962169.aspx/1?Re+IIS7+5+restart+MVC3+application+when+delete+subdirRe: IIS7.5 restart MVC3 application when delete subdir <p>put under App_Data.</p> <p>Does it restart?</p> 2012-05-02T14:35:44-04:004962188http://forums.asp.net/p/1799270/4962188.aspx/1?Re+IIS7+5+restart+MVC3+application+when+delete+subdirRe: IIS7.5 restart MVC3 application when delete subdir <p>Yes. It restarts. But if I do not delete folder all works fine.</p> 2012-05-02T14:45:54-04:004966863http://forums.asp.net/p/1799270/4966863.aspx/1?Re+IIS7+5+restart+MVC3+application+when+delete+subdirRe: IIS7.5 restart MVC3 application when delete subdir <p>I was unable to reproduce this.</p> 2012-05-05T10:10:40-04:004971915http://forums.asp.net/p/1799270/4971915.aspx/1?Re+IIS7+5+restart+MVC3+application+when+delete+subdirRe: IIS7.5 restart MVC3 application when delete subdir <p>Hi</p> <p>Actually I couldnt reproduce your senario, so I just could tell you the general reason&nbsp;why the application domain recycle.</p> <ul> <li>Machine.Config, Web.Config or Global.asax are modified </li><li>The bin directory or its contents is modified </li><li>The number of re-compilations (aspx, ascx or asax) exceeds the limit specified by the &lt;compilation numRecompilesBeforeAppRestart=/&gt; setting in machine.config or web.config&nbsp; (by default this is set to 15) </li><li>The physical path of the virtual directory is modified </li><li>The CAS policy is modified </li><li>The web service is restarted </li><li>Application Sub-Directories are deleted (see Todds blog <a href="http://blogs.msdn.com/toddca/archive/2006/07/17/668412.aspx"> http://blogs.msdn.com/toddca/archive/2006/07/17/668412.aspx</a> for more info) </li></ul> <p>Hope this helpful<br> Regards<br> Young Yang</p> 2012-05-09T05:28:03-04:00