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.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
kollisp
Member
10 Points
9 Posts
IHTTPModule Dispose method called continuously
Aug 08, 2011 11:21 AM|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.
Thanks
Sai Prasad
ihttdmodule
XIII
All-Star
182684 Points
23455 Posts
ASPInsiders
Moderator
MVP
Re: IHTTPModule Dispose method called continuously
Aug 08, 2011 02:06 PM|LINK
Hi,
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.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!