« Previous Next »

Thread: IIS7 HTTP Module not firing

Last post 02-23-2009 2:52 AM by Andrew Zhu - MSFT. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 02-16-2009, 4:24 AM

    • Jamin74
    • Not Ranked
    • Joined on 02-16-2009, 9:01 AM
    • Posts 1

    IIS7 HTTP Module not firing

     I have developed a HTTP Module which I have installed on IIS7 at SERVER level from the UI.  I want this module to work across all sites on the server.  As far as I am aware when you install a module at server level an entry is made into applicationhost.config only (the individual web.configs are not altered).

    The module works fine for sites or applications where the application pool is set to Default App Pool, but if Classic .NET AppPool is used the INIT event in my module doesn't fire.  I have read a few posts where people are putting HTTP modules in specific sites and it says you need to add the module to the web.config in both the System.Web and System.WebServer sections like this link indicated....

    http://bhaidar.net/cs/archive/2007/09/12/httpmodules-and-iis-7.aspx

    But my situtaion is slightly different as I have added it to the complete server and the applicationhost.config ONLY has the webserver section.

    So any ideas how to get a server level HTTP Module to work with both Default App Pool and Classic .NET AppPool?

     Thanks in advance

  • 02-16-2009, 5:22 AM In reply to

    Re: IIS7 HTTP Module not firing

    did you try adding the HTTP Module in the 'root' web.config?

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 02-23-2009, 2:52 AM In reply to

    Re: IIS7 HTTP Module not firing

    Jamin74:
    the INIT event in my module doesn't fire
     

    Do other events works?

    Regards

    Sincerely
    Microsoft Online Community Support
    Andrew Zhu - MSFT


    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (3 items)
Microsoft Communities