<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Configuration and Deployment</title><link>http://forums.asp.net/26.aspx</link><description>Configuring and deploying ASP.NET applications - web.config, \bin, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: FCMode + 'dir change or directory rename'</title><link>http://forums.asp.net/thread/2850317.aspx</link><pubDate>Tue, 06 Jan 2009 19:27:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2850317</guid><dc:creator>hitchhiker999</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2850317.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2850317</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yep, that&amp;#39;s the experience I have.. I&amp;#39;ve now been using it since I posted it and it&amp;#39;s been working flawlessly.. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I can&amp;#39;t believe this isn&amp;#39;t mentioned more, considering the nature of most web apps these days, this is a serious issue - app restarts cause many issues eg: a user uploads an image and the temp file is located within the app dir (which it may be for a lot of people) the app loses it&amp;#39;s state!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: FCMode + 'dir change or directory rename'</title><link>http://forums.asp.net/thread/2845260.aspx</link><pubDate>Sun, 04 Jan 2009 06:18:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2845260</guid><dc:creator>bernesto</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2845260.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2845260</wfw:commentRss><description>&lt;p&gt;Thanks for the awesome piece of code. In my tests, without the code, deleting a directory causes the application to restart, with the code it does not. Touching the web.config or the bin still causes the application to restart.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: FCMode + 'dir change or directory rename'</title><link>http://forums.asp.net/thread/2582734.aspx</link><pubDate>Wed, 27 Aug 2008 08:06:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2582734</guid><dc:creator>hitchhiker999</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2582734.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2582734</wfw:commentRss><description>&lt;p&gt;I had rebooted actually, but it&amp;#39;s fine now..&lt;/p&gt;&lt;p&gt;The above code, when attached to my global.asax (app start), stopped file change notifications only on the sub dirs - it was the perfect solution as touching web.config or /bin/ still correctly causes a refresh. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: FCMode + 'dir change or directory rename'</title><link>http://forums.asp.net/thread/2581558.aspx</link><pubDate>Tue, 26 Aug 2008 18:47:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2581558</guid><dc:creator>Bruce L</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2581558.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2581558</wfw:commentRss><description>&lt;p&gt;I think the path of the registry key is correct.&lt;/p&gt;
&lt;p&gt;Have you tried restart IIS and see if the new setting takes?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t believe you can switch off file change notification programatically.&lt;/p&gt;</description></item><item><title>Re: FCMode + 'dir change or directory rename'</title><link>http://forums.asp.net/thread/2581552.aspx</link><pubDate>Tue, 26 Aug 2008 18:42:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2581552</guid><dc:creator>hitchhiker999</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2581552.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2581552</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I found this somewhere on your site, which solved it:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;//FIX disable AppDomain restart when deleting subdirectory&lt;br /&gt;&lt;br /&gt;//This code will turn off monitoring from the root website directory.&lt;br /&gt;&lt;br /&gt;//Monitoring of Bin, App_Themes and other folders will still be operational, so updated DLLs will still auto deploy.&lt;br /&gt;&lt;br /&gt;System.Reflection.PropertyInfo p = typeof(System.Web.HttpRuntime).GetProperty(&amp;quot;FileChangesMonitor&amp;quot;, System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static);&lt;br /&gt;&lt;br /&gt;object o = p.GetValue(null, null);&lt;br /&gt;&lt;br /&gt;System.Reflection.FieldInfo f = o.GetType().GetField(&amp;quot;_dirMonSubdirs&amp;quot;, System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.IgnoreCase);&lt;br /&gt;&lt;br /&gt;object monitor = f.GetValue(o);&lt;br /&gt;&lt;br /&gt;System.Reflection.MethodInfo m = monitor.GetType().GetMethod(&amp;quot;StopMonitoring&amp;quot;, System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); m.Invoke(monitor, new object[] { }); &lt;br /&gt;&lt;/p&gt;</description></item><item><title>FCMode + 'dir change or directory rename'</title><link>http://forums.asp.net/thread/2581341.aspx</link><pubDate>Tue, 26 Aug 2008 16:37:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2581341</guid><dc:creator>hitchhiker999</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2581341.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2581341</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m having trouble with disabling File Change Notification on my .NET 2 / 3.5 webserver. I have an app that removes directories once in a while, every time that happens I get &amp;#39;dir change or directory rename
HostingEnvironment initiated shutdown&amp;#39;&lt;/p&gt;&lt;p&gt;I put this key in, as instructed - then rebooted. &lt;/p&gt;&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET]&lt;br /&gt;&amp;quot;FCNMode&amp;quot;=dword:00000001&lt;/p&gt;&lt;p&gt;-Is it in the wrong place, when I delete a directory the site still recycles?&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Also: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;-Is there any way to switch of FCN programatically via my global.asax or any other method?&lt;br /&gt;-If so would setting up my own FCN service (that just monitors certain config files) and using &amp;#39;System.Web.HttpRuntime.UnloadAppDomain();&amp;#39; be identical to the native one?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>