Default page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nekit

    #1

    Default page

    Hello all.

    I have created an httpHandler to redirect requests to some files from
    other places. For this handler to be called for all files I've added
    Application mapping in the IIS with Extension "*" so that request of
    any file goes through aspnet_isapi.dl l. Then in web.config I specify
    when to call the handler. This part seem to be working ok.

    The problem comes up when I specify NO file in my request. e.g. if I
    browse to http://myserver/myapp. At this point, since I did not
    specify any filename, IIS should go and pick from the list of Default
    Documents. But since I redirected all requests to aspnet_isapi.dl l,
    IIS does not do it... And I get 404 (from aspnet_isapi.dl l).

    So the question is... How to specify list of Default Document for
    aspnet_isapi.dl l?

    Thanks,
    MY
  • Michal A. Valasek

    #2
    Re: Default page

    Hello,

    | The problem comes up when I specify NO file in my request. e.g. if I
    | browse to http://myserver/myapp. At this point, since I did not
    | specify any filename, IIS should go and pick from the list of Default
    | Documents. But since I redirected all requests to aspnet_isapi.dl l,
    | IIS does not do it... And I get 404 (from aspnet_isapi.dl l).

    does not and does well. Default document specifies existing default
    documents in some folder, and when goes to 404's, its not used.

    I think that only way would be to specify in IIS some ASPX page as default
    404 error document and process THIS request.

    It's not so elegant and, but it's the only solution I know. I hope that
    someone would give better one.

    --
    Michal A. Valasek, Altair Communications, http://www.altaircom.net
    Please do not reply to this e-mail, for contact see http://www.rider.cz


    Comment

    Working...