CUSTOM ERROR PAGES

Discussion in 'ASP .Net' started by Mike Speak, Nov 5, 2003.

  1. Mike Speak

    Mike Speak Guest

    Help!!!

    This should be sooo simple.

    In web.config, i have the following element:

    <customErrors defaultRedirect="myError.aspx" mode="RemoteOnly">
    <error statusCode="404" redirect="my404Error.aspx" />
    </customErrors>

    However, this just does not work.

    If i type in ..mySite/test i get a standard 404 error, not the one
    specified in my <error/> tag.
    If i type in ..mySite/test.asp - same thing
    If i type in ..mySite/test.aspx - i get a .NetFramework error page

    what am i doing wrong? do i need to tweak iis? another config file?

    I am using .NETF 1.0 on XP Pro machine.

    TIA
     
    Mike Speak, Nov 5, 2003
    #1
    1. Advertising

  2. What happens if you set mode="on" ?

    Also, check out 306355 HOW TO: Create Custom Error Reporting Pages in
    ASP.NET by Using Visual
    http://support.microsoft.com/?id=306355
    Hope this helps.
    Thank you,
    John Soulis
    Microsoft, ASP.NET

    This posting is provided "AS IS", with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    http://www.microsoft.com/info/cpyright.htm
     
    John Soulis [MSFT], Nov 6, 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. Steve Klett

    using custom error pages w/ runtime errors

    Steve Klett, Nov 12, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    387
    Steve Klett
    Nov 12, 2003
  2. Kenneth Keeley

    Custom Error Pages

    Kenneth Keeley, Nov 13, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    457
    Kenneth Keeley
    Nov 13, 2003
  3. =?Utf-8?B?Umh5czY2Ng==?=

    Custom Error Pages

    =?Utf-8?B?Umh5czY2Ng==?=, Mar 30, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    381
    =?Utf-8?B?Umh5czY2Ng==?=
    Mar 30, 2005
  4. Brian Munroe

    Custom Error Pages in ASP.NET - Global.asax

    Brian Munroe, Apr 28, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    1,207
    Brian Munroe
    Apr 28, 2005
  5. Laurie Dvorak

    Display images in Custom Error Pages

    Laurie Dvorak, Jul 6, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    677
    Laurie Dvorak
    Jul 6, 2005
Loading...

Share This Page