IHTTPModule Dispose method called continuouslyhttp://forums.asp.net/t/1708370.aspx/1?IHTTPModule+Dispose+method+called+continuouslyMon, 08 Aug 2011 14:06:41 -040017083704544217http://forums.asp.net/p/1708370/4544217.aspx/1?IHTTPModule+Dispose+method+called+continuouslyIHTTPModule Dispose method called continuously <p>I have written IHTTPModule. In the dispose method of the module I am logging a debug statement.</p> <p>When web.config file is changed the log statement in Dispose method is getting logged continuously. Its not stopping until I restart IIS webserver.</p> <p>Not able to understand why this is happening.&nbsp;</p> <p>Any help in this regard is much appreciated.</p> <p></p> <p>Thanks</p> <p>Sai Prasad</p> 2011-08-08T11:21:53-04:004544488http://forums.asp.net/p/1708370/4544488.aspx/1?Re+IHTTPModule+Dispose+method+called+continuouslyRe: IHTTPModule Dispose method called continuously <p>Hi,</p> <p>and welcome to the ASP.NET forums.</p> <p>Whenever you change a web.config or write something in the /bin subfolder you'll recycle the process. As you didn't put the code you're using in your module I can only assume that in the Dispose you're either writing something to the web.config or to the /bin folder. If so, write to a custom folder like /errorlogs or something so as to not recycle the process.</p> <p>Grz, Kris.</p> 2011-08-08T14:06:41-04:00