Last post Jul 15, 2011 03:32 PM by politus
Sep 10, 2007 09:03 PM|SomeNewTricks2|LINK
Hello, Please help me find why this HttpModule is not firing at all
public class TestHttpModule : IHttpModule
public void Init(System.Web.HttpApplication Application)
Application.Error += new System.EventHandler(OnError);
public void Dispose()
protected virtual void OnError(object sender, EventArgs args)
HttpApplication app = (HttpApplication)sender;
I placed the above class in the App_Code folder. In the web.config file, I useed this:
Any help please? In the Default.aspx page I am writing "throw new ApplicationError("..")" and I see that the HttpModule is not firing any event!
Sep 11, 2007 01:13 PM|ankitarora13|LINK
Try specifying the following....
Sep 11, 2007 01:25 PM|SomeNewTricks2|LINK
But I am placing the code in App_Code and not in a seperate assembly to specify MyModules!
Sep 11, 2007 09:02 PM|SomeNewTricks2|LINK
This is driving me crazy!
I downloaded a sample code for a video on the www.asp.net website that talks about HttpModule! It works fine, when I move the same HttpModule to my application, the module never runs!! Is there a special workaround we should
do to make an HttpModule works on a website under .NET 3.0\5 on VS 2008 Beta 2 with Vista/IIS 7?
Sep 13, 2007 10:11 AM|haidar_bilal|LINK
This is related to IIS 7 and Integrated Mode related to Application pool. Have a look at this post of mine, I had same thing and I did solve it!!
Apr 07, 2010 06:22 AM|chazelton|LINK
Holy crap this fixed my issue. Same as the unlucky soul above I was scratching my head at this. The module worked perfectly in "Cassini" the buit in webdev server in Visual Studio but no go on a production IIS 7.0.
Basically registered the module in both places in the web config. both the <httpModules> section and the <modules> section.
This was very frustrating not to mention that this was the only place I could find anything regarding the issue.
Stuff like this is really annoying.
So Bilal a toast to you, or in this case let's just go with the bottle....I need it right about now whew!
Apr 23, 2010 11:54 AM|meetsankar|LINK
Thanks chazelton you saved me lot of time :)
Jul 15, 2011 03:32 PM|politus|LINK
the link in the answer is now