Last post Aug 08, 2011 10:06 AM by XIII
Aug 08, 2011 07:21 AM|kollisp|LINK
I have written IHTTPModule. In the dispose method of the module I am logging a debug statement.
When web.config file is changed the log statement in Dispose method is getting logged continuously. Its not stopping until I restart IIS webserver.
Not able to understand why this is happening.
Any help in this regard is much appreciated.
Aug 08, 2011 10:06 AM|XIII|LINK
and welcome to the ASP.NET forums.
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.