.NET and 404 error.

Discussion in 'ASP .Net' started by George Ter-Saakov, Nov 3, 2003.

  1. I have an application where IHttpModule is catching all ASPX requests and
    transfer them to correct ASPX page using HttpCurrent.RewrutePath ( like
    DoNetNuke is doing).

    The problem i have is that if default page is assumed (default.aspx) then
    IIS give 404 without forwarding to ASP.NET engine.

    Example:
    http://www.mysite.com/default.aspx --- works even if default.aspx does not
    exist.
    http://www.mysite.com -- 404 because default.aspx does not exist.

    I heard that i need to have Windows 2003 for that to work.
    Can someone confirm it. I can not find any solid documentation on it.

    Thanks.
    George.
    George Ter-Saakov, Nov 3, 2003
    #1
    1. Advertising

  2. George Ter-Saakov

    jib Guest

    George,

    When you open the IIS manager, right click on your web site, select
    properties and browse to the 'Documents'
    tab, make sure default.aspx is part of the default document list.

    Jib.


    "George Ter-Saakov" <> wrote in message
    news:...
    > I have an application where IHttpModule is catching all ASPX requests and
    > transfer them to correct ASPX page using HttpCurrent.RewrutePath ( like
    > DoNetNuke is doing).
    >
    > The problem i have is that if default page is assumed (default.aspx) then
    > IIS give 404 without forwarding to ASP.NET engine.
    >
    > Example:
    > http://www.mysite.com/default.aspx --- works even if default.aspx does

    not
    > exist.
    > http://www.mysite.com -- 404 because default.aspx does not exist.
    >
    > I heard that i need to have Windows 2003 for that to work.
    > Can someone confirm it. I can not find any solid documentation on it.
    >
    > Thanks.
    > George.
    >
    >
    jib, Nov 3, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Prasanna Padmanabhan
    Replies:
    1
    Views:
    628
    Kevin Spencer
    Jul 8, 2004
  2. Jonathan Folland
    Replies:
    2
    Views:
    1,610
    Jonathan Folland
    Mar 17, 2005
  3. Replies:
    3
    Views:
    968
    HalcyonWild
    Oct 14, 2005
  4. Bishop
    Replies:
    1
    Views:
    753
    Bishop
    Feb 24, 2007
  5. Replies:
    0
    Views:
    414
Loading...

Share This Page