« Previous Next »

Answered Thread: HTTPModule not working with IIS 7

Last post 06-11-2009 4:57 PM by shinjiDev. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 03-21-2007, 11:31 AM

    • jagid
    • Not Ranked
    • Joined on 06-20-2006, 5:56 PM
    • Posts 5

    HTTPModule not working with IIS 7

    Our web application uses NHibernate for persistence. An HTTPModule implements the Open-Session-In-View pattern. Basically a transaction is started when the BeginRequest event fires on the HTTPApplication and committed when the EndRequest event fires (this is an oversimplification but for my purposes here it should suffice).

    Under XP / Windows 2003 etc. everything is fine. However under Vista and IIS 7 the HTTPModule does not appear to be invoked. I have tried to debug the HTTPModule (in another solution) by attaching to the running w3wp.exe but I can't (I am told that the symbols are not loaded). When I run the application using the ASP.NET Development Server the HTTPModule is invoked and I can attach to WebDev.WebServer.EXE for debugging.

    Can anyone help me?

  • 03-21-2007, 12:58 PM In reply to

    • jagid
    • Not Ranked
    • Joined on 06-20-2006, 5:56 PM
    • Posts 5

    Answered Re: HTTPModule not working with IIS 7

    I changed the pool from the DefaultAppPool (integrated) to the Classic.NET AppPool. The HTTPModule works now but I still can't attach and debug.
  • 03-21-2007, 2:41 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: HTTPModule not working with IIS 7

    For the module not loading in integrated mode - you need to migarate your modules from system.web/httpModules to system.webServer/modules - you can do it manually or using appcmd migrate.

    For the debugger not attaching, are you running the debugger elevated?

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 06-11-2009, 4:57 PM In reply to

    Re: HTTPModule not working with IIS 7

     Really thxs for the answer, i had troubles with OSIV with IIS7.

    Nice answer :3

Page 1 of 1 (4 items)
Microsoft Communities