CustomErrors! What is going on?

Discussion in 'ASP .Net' started by shapper, Nov 27, 2008.

  1. shapper

    shapper Guest

    Hello,

    I have the following on my ASP.NET web.config file:

    <customErrors mode ="On" defaultRedirect ="/Error/Generic">
    <error statusCode ="400" redirect ="/Error/Http/400"/>
    <error statusCode ="401" redirect ="/Error/Http/401"/>
    <error statusCode ="403" redirect ="/Error/Http/403"/>
    <error statusCode ="404" redirect ="/Error/Http/404"/>
    <error statusCode ="408" redirect ="/Error/Http/408"/>
    <error statusCode ="500" redirect ="/Error/Http/500"/>
    <error statusCode ="502" redirect ="/Error/Http/502"/>
    <error statusCode ="503" redirect ="/Error/Http/503"/>
    <error statusCode ="504" redirect ="/Error/Http/504"/>
    </customErrors>

    Something very strange happens. Every time I refresh a page the error
    is fired but the HttpCode is always null.

    I have no idea why this is firing because no error happens.

    Could someone help me out?

    Thanks,

    Miguel
     
    shapper, Nov 27, 2008
    #1
    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. NRao

    customErrors 404

    NRao, Jul 1, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    484
    Bassel Tabbara [MSFT]
    Jul 1, 2003
  2. Jesse Napier

    CustomErrors statusCode 500

    Jesse Napier, Aug 7, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    4,782
    Michal A. Valasek
    Aug 7, 2003
  3. =?Utf-8?B?cmV6YQ==?=

    <customErrors .... not working??

    =?Utf-8?B?cmV6YQ==?=, Feb 18, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    998
    Jim Cheshire [MSFT]
    Feb 18, 2004
  4. Pete Davis

    customErrors issues

    Pete Davis, Mar 2, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    397
    Pete Davis
    Mar 6, 2004
  5. =?Utf-8?B?U2FtdWVs?=

    .NET question about the customErrors Tag

    =?Utf-8?B?U2FtdWVs?=, May 2, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    468
    Steven Cheng[MSFT]
    May 11, 2004
Loading...

Share This Page