<?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>Getting Started</title><link>http://forums.asp.net/15.aspx</link><description>The perfect forum for ASP.NET novices. No question too simple! &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=21&amp;amp;c=17" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/2080599.aspx</link><pubDate>Fri, 28 Dec 2007 12:57:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2080599</guid><dc:creator>Hardik Dave</dc:creator><author>Hardik Dave</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2080599.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2080599</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I too had the same problem. Actually, in my case, i need to create the folder(s) in the path as - &lt;strong&gt;C:\inetpub\wwwroot\ [web app folder]\WebApp\ [create folder here]&lt;/strong&gt;. Now i was&amp;nbsp;to copy files (.jpg, .bmp. .gif....)&amp;nbsp;in to this folders and according to the functionality remove them from these folders. According to the solution provided above, i tried it but didn&amp;#39;t work out. I had a work around for that. I created a folder in a same drive with another name and then move the folder which is to be deleted to that particular folder. This work out for me and application also didnt gave me any error.&lt;/p&gt;
&lt;p&gt;If anyone need code for the workout which i had done, do reply to this mail, i will be happy to help you guys.&lt;/p&gt;
&lt;p&gt;----------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;If you find this reply suitable for your query, do click &amp;quot;Answer&amp;quot;.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Hardik&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/2080150.aspx</link><pubDate>Fri, 28 Dec 2007 05:53:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2080150</guid><dc:creator>Hardik Dave</dc:creator><author>Hardik Dave</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2080150.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2080150</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried the workaround given by you, but still the folder is still there for sometimes and then it vanishes. &lt;/p&gt;
&lt;p&gt;My scenario is, i create folder(s) inside &lt;strong&gt;C:\Inetpub\wwwRoot\ [app folder]\webapp\xyz\projects\abc\ [here i create a folder]. &lt;/strong&gt;I also add files to this folder and then try to delete this folder by traversing from bottom to top by deleting first the files in the folder and then if folder is empty. then i try to delete this folder. At the time of deletion, i dont get any error, but when i again come back to same folder, my application tries to reload all the subfolders beneath the specific folder and i receive error &amp;quot;&lt;strong&gt;Access to path [full path with folder name] is denied&amp;quot;.&lt;/strong&gt; I had placed the above code given by you in &lt;strong&gt;Application_Start().&lt;/strong&gt; After sometime the folder automatically gets deleted. I have give full rights to Network Service (as mac is Win2k3), i have full rights on the machine. I have given all the rights to the app folder in &lt;strong&gt;C:\Inetpub\wwwRoot\ [app folder].&lt;/strong&gt; Apart from placing the code given by you, still i am facing the same problem. Can you please help me if you can. I need to complete my work and deliver as soon as possible.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Hardik Dave&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1980556.aspx</link><pubDate>Tue, 30 Oct 2007 08:23:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1980556</guid><dc:creator>bass4g0d</dc:creator><author>bass4g0d</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1980556.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1980556</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;gunteman:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Just copy the code from the workaround:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;PropertyInfo p = &lt;span class="kwd"&gt;typeof&lt;/span&gt;(System.Web.HttpRuntime).GetProperty(&lt;span class="st"&gt;&amp;quot;FileChangesMonitor&amp;quot;&lt;/span&gt;, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static);
&lt;span class="kwd"&gt;object&lt;/span&gt; o = p.GetValue(&lt;span class="kwd"&gt;null&lt;/span&gt;, &lt;span class="kwd"&gt;null&lt;/span&gt;);
FieldInfo f = o.GetType().GetField(&lt;span class="st"&gt;&amp;quot;_dirMonSubdirs&amp;quot;&lt;/span&gt;, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase);
&lt;span class="kwd"&gt;object&lt;/span&gt; monitor = f.GetValue(o);
MethodInfo m = monitor.GetType().GetMethod(&lt;span class="st"&gt;&amp;quot;StopMonitoring&amp;quot;&lt;/span&gt;, BindingFlags.Instance | BindingFlags.NonPublic);
        m.Invoke(monitor, &lt;span class="kwd"&gt;new object&lt;/span&gt;[] { }); &lt;/pre&gt;
&lt;p&gt;&amp;nbsp; ..and add it to a good place, such as Application_Start in global.asax&lt;/p&gt;
&lt;p&gt;You must add &amp;quot;using System.Reflection&amp;quot; to Global.asax.cs&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="7em" id="ctl00_MasterBody_WorkaroundList_ctl03_WorkaroundDescriptionLabel"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;This don&amp;#39;t work on one of my application pools that i use for ASP.NET 2.0 apps. Using an App Pool that i have with 1.1 and 2.0 websites works fine. This is not recommend by the H-Phere guys. &lt;/p&gt;
&lt;p&gt;Every new apps i try to publish now have this issue in all app pools.&amp;nbsp;Any ideas?&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1865808.aspx</link><pubDate>Mon, 20 Aug 2007 01:10:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1865808</guid><dc:creator>pankajgohel</dc:creator><author>pankajgohel</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1865808.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1865808</wfw:commentRss><description>&lt;p&gt;Hi I had also same problem in my application. So it is resolved by the solution given in this thread.&lt;/p&gt;
&lt;p&gt;So first i would like thanks to you all.&lt;/p&gt;
&lt;p&gt;And please let me know if is there any side effect of this.&lt;/p&gt;
&lt;p&gt;One again Thanks&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Pankaj&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1857190.aspx</link><pubDate>Tue, 14 Aug 2007 13:24:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1857190</guid><dc:creator>venkatzeus</dc:creator><author>venkatzeus</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1857190.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1857190</wfw:commentRss><description>&lt;p&gt;Thank you very much for the reply. &lt;/p&gt;
&lt;p&gt;I will let you know, if the code leads to any other Performance Issues,so that it can be helpful for all.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1854603.aspx</link><pubDate>Mon, 13 Aug 2007 09:48:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1854603</guid><dc:creator>gunteman</dc:creator><author>gunteman</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1854603.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1854603</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;venkatzeus:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;But will that lead to any other performance or memory leak issues?&lt;/p&gt;&lt;p&gt;
&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I doubt it. It&amp;#39;s just shutting down the file monitoring.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1854405.aspx</link><pubDate>Mon, 13 Aug 2007 07:29:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1854405</guid><dc:creator>venkatzeus</dc:creator><author>venkatzeus</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1854405.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1854405</wfw:commentRss><description>&lt;p&gt;Hi.. I had used the code as you had mentioned, and it is working fine. But will that lead to any other performance or memory leak issues?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1850215.aspx</link><pubDate>Thu, 09 Aug 2007 16:09:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1850215</guid><dc:creator>venkatzeus</dc:creator><author>venkatzeus</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1850215.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1850215</wfw:commentRss><description>&lt;p&gt;Thank you very much for the reply. I will work on the code, and provide the response..&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1849911.aspx</link><pubDate>Thu, 09 Aug 2007 14:07:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1849911</guid><dc:creator>gunteman</dc:creator><author>gunteman</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1849911.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1849911</wfw:commentRss><description>&lt;p&gt;Just copy the code from the workaround:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;PropertyInfo p = &lt;span class="kwd"&gt;typeof&lt;/span&gt;(System.Web.HttpRuntime).GetProperty(&lt;span class="st"&gt;&amp;quot;FileChangesMonitor&amp;quot;&lt;/span&gt;, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static);
&lt;span class="kwd"&gt;object&lt;/span&gt; o = p.GetValue(&lt;span class="kwd"&gt;null&lt;/span&gt;, &lt;span class="kwd"&gt;null&lt;/span&gt;);
FieldInfo f = o.GetType().GetField(&lt;span class="st"&gt;&amp;quot;_dirMonSubdirs&amp;quot;&lt;/span&gt;, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase);
&lt;span class="kwd"&gt;object&lt;/span&gt; monitor = f.GetValue(o);
MethodInfo m = monitor.GetType().GetMethod(&lt;span class="st"&gt;&amp;quot;StopMonitoring&amp;quot;&lt;/span&gt;, BindingFlags.Instance | BindingFlags.NonPublic);
        m.Invoke(monitor, &lt;span class="kwd"&gt;new object&lt;/span&gt;[] { }); &lt;/pre&gt;&lt;p&gt;&amp;nbsp; ..and add it to a good place, such as Application_Start in global.asax&lt;/p&gt;&lt;p&gt;You must add &amp;quot;using System.Reflection&amp;quot; to Global.asax.cs&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span id="ctl00_MasterBody_WorkaroundList_ctl03_WorkaroundDescriptionLabel" class="7em"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1849837.aspx</link><pubDate>Thu, 09 Aug 2007 13:39:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1849837</guid><dc:creator>venkatzeus</dc:creator><author>venkatzeus</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1849837.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1849837</wfw:commentRss><description>&lt;p&gt;Hi..&lt;/p&gt;
&lt;p&gt;I googled and found out this: &lt;a href="http://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=240686"&gt;http://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=240686&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you please help me the way you had done..&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1849772.aspx</link><pubDate>Thu, 09 Aug 2007 13:15:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1849772</guid><dc:creator>bpw</dc:creator><author>bpw</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1849772.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1849772</wfw:commentRss><description>&lt;p&gt;I tried the Todd Carter ‘Linkd’ solution and got it working, but it wasn’t the answer for me. I’m listing directories in a treeview and the application ‘believed’ that the deleted folder was still there and raised an exception when it thought it should come across it. &lt;/p&gt;
&lt;p&gt;In the end I decided on a similar approach to ravipahuja1’s suggestion. I delete the folder contents and put a marker file inside the folder. You could use anything that is unlikely to be used for a real file, e.g. xxx.xxx. When the app comes across a folder with this file it ignores it. I just need to write a routine to remove all these folders at regular intervals. I haven’t used windows services, so I’ll have to look at that.&lt;/p&gt;
&lt;p&gt;Bear in mind that renaming a folder will also cause an application restart. &lt;/p&gt;
&lt;p&gt;I agree with gunteman, this is a major headache with .NET 2.0 and I don’t think MS intend to change it.&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1849734.aspx</link><pubDate>Thu, 09 Aug 2007 12:55:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1849734</guid><dc:creator>venkatzeus</dc:creator><author>venkatzeus</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1849734.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1849734</wfw:commentRss><description>&lt;p&gt;Hi..&lt;/p&gt;
&lt;p&gt;I checked the link, But the solution provided over there is too complex and has limitations.&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1849693.aspx</link><pubDate>Thu, 09 Aug 2007 12:42:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1849693</guid><dc:creator>ravipahuja1</dc:creator><author>ravipahuja1</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1849693.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1849693</wfw:commentRss><description>&lt;p&gt;Look at the link is provided by&lt;/p&gt;
&lt;p&gt;&lt;a href="http://forums.asp.net/members/gunteman.aspx"&gt;&lt;font color="#034efa"&gt;gunteman&lt;/font&gt;&lt;/a&gt; above&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1849639.aspx</link><pubDate>Thu, 09 Aug 2007 12:26:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1849639</guid><dc:creator>venkatzeus</dc:creator><author>venkatzeus</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1849639.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1849639</wfw:commentRss><description>&lt;p&gt;Hi..&lt;/p&gt;
&lt;p&gt;The SessionId forms the folder name. &lt;/p&gt;
&lt;p&gt;As the folder is created in the inetmgr, deleting the folder is making the IIS re-start..&lt;/p&gt;</description></item><item><title>Re: Delete folder when session time-out..</title><link>http://forums.asp.net/thread/1849620.aspx</link><pubDate>Thu, 09 Aug 2007 12:21:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1849620</guid><dc:creator>venkatzeus</dc:creator><author>venkatzeus</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1849620.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1849620</wfw:commentRss><description>&lt;p&gt;Thank you for the reply.&lt;/p&gt;
&lt;p&gt;But, Is there any code work-arounds...&lt;/p&gt;
&lt;p&gt;Please help..&lt;/p&gt;</description></item></channel></rss>