IIS7 fails to trigger SessionStateModule upon UrlRewriteRSS

3 replies

Last post Sep 11, 2008 02:04 PM by anilr

  • IIS7 fails to trigger SessionStateModule upon UrlRewrite

    Sep 09, 2008 05:34 AM|shivashankarp|LINK

    Detailed info here http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=357248.

    Due to this bug, extensionless urls becomes impossible with IIS7 on a site that uses session state and url rewriting extensively.

    Any workarounds other than the one mentioned in the above link?

     

    rewrite

  • Re: IIS7 fails to trigger SessionStateModule upon UrlRewrite

    Sep 09, 2008 01:00 PM|anilr|LINK

    Have you tried setting runAllManagedModulesForAllRequests to true?

    %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/modules -runAllManagedModulesForAllRequests:true

     

    Anil Ruia
    Software Design Engineer
    IIS Core Server
  • Re: IIS7 fails to trigger SessionStateModule upon UrlRewrite

    Sep 10, 2008 10:50 PM|shivashankarp|LINK

    No I haven't tried setting that.  I would prefer not to set that due to the associated performance implications.  Is a fix from IIS team expected any time soon?

  • Re: IIS7 fails to trigger SessionStateModule upon UrlRewrite

    Sep 11, 2008 02:04 PM|anilr|LINK

    You have to either allow managed modules to run for extensionless urls if you want to use RewritePath - or you can spawn a new child request for the new url using TransferRequest.  There is cost to either.

    The most performant way would to be to use OnPreBeginRequest notification to do the rewrite - this would correspond use globalRules in the rewrite module.

    Anil Ruia
    Software Design Engineer
    IIS Core Server