HttpModule IIS6 Default Content Page [Answered]RSS

1 reply

Last post Jan 01, 2013 11:38 PM by London

  • HttpModule IIS6 Default Content Page

    Dec 28, 2012 04:14 PM|doverNH|LINK

    I have written c# .net 4 HttpModule to change image paths.  I am using IIS6.  The code will work if I there is a page name in the url ex:  If the url doesn't contain a page name like: and has a default content page (IIS6 | Documents | Enable default content page | Default.aspx), I get an error: 

    Server Error in '/' Application.

    The resource cannot be found.

    Is my only option to do a app.Context.RewritePath?

  • Re: HttpModule IIS6 Default Content Page

    Jan 01, 2013 11:38 PM|London|LINK


    I suspect that the httpmodule doesn't applies to the childe request generated by default document module. It is most likely you need to rewrite or redirect the requests to insure the url contains a page name.