Generate an Error 500

Discussion in 'ASP General' started by Toni, Aug 25, 2009.

  1. Toni

    Toni Guest

    I have an ASP website that is very strong in terms of error handling - if an Error 500
    occurs, a custom error page is generated and I receive an email with diagnostic
    information.

    I have a situation where if I detect certain illegal conditions (such as an SQL
    injection attack) I want to generate an Error 500 so that I am notified immediately of
    the situation.

    Other than simply putting in a divide-by-zero statement, does ASP support a CUSTOM Error
    500 code of my own design?

    Thanks!!!
     
    Toni, Aug 25, 2009
    #1
    1. Advertising

  2. Toni

    Bob Barrows Guest

    Toni wrote:
    > I have an ASP website that is very strong in terms of error handling
    > - if an Error 500 occurs, a custom error page is generated and I
    > receive an email with diagnostic information.
    >
    > I have a situation where if I detect certain illegal conditions (such
    > as an SQL injection attack) I want to generate an Error 500 so that I
    > am notified immediately of the situation.
    >
    > Other than simply putting in a divide-by-zero statement, does ASP
    > support a CUSTOM Error 500 code of my own design?
    >
    > Thanks!!!


    This is all that is available:
    http://classicasp.aspfaq.com/general/how-do-i-log/track-asp-errors-on-my-web-site.html
    --
    Microsoft MVP - ASP/ASP.NET - 2004-2007
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"
     
    Bob Barrows, Aug 25, 2009
    #2
    1. Advertising

  3. Toni

    Toni Guest

    "Bob Barrows" wrote...
    > Toni wrote:
    >> I have an ASP website that is very strong in terms of error handling
    >> - if an Error 500 occurs, a custom error page is generated and I
    >> receive an email with diagnostic information.
    >>
    >> I have a situation where if I detect certain illegal conditions (such
    >> as an SQL injection attack) I want to generate an Error 500 so that I
    >> am notified immediately of the situation.
    >>
    >> Other than simply putting in a divide-by-zero statement, does ASP
    >> support a CUSTOM Error 500 code of my own design?
    >>
    >> Thanks!!!

    >
    > This is all that is available:
    > http://classicasp.aspfaq.com/general/how-do-i-log/track-asp-errors-on-my-web-site.html
    > --
    > Microsoft MVP - ASP/ASP.NET - 2004-2007


    I'm handling it with a divide by zero, thanks!
     
    Toni, Aug 26, 2009
    #3
    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. Rod
    Replies:
    9
    Views:
    3,754
    Jim Cheshire [MSFT]
    Jul 26, 2004
  2. John Bonds
    Replies:
    2
    Views:
    2,739
    Amaryllis
    Aug 3, 2004
  3. Replies:
    5
    Views:
    80,159
    cpdarkman
    Aug 26, 2009
  4. JavaQueries
    Replies:
    1
    Views:
    3,682
    John C. Bollinger
    Mar 1, 2005
  5. James
    Replies:
    2
    Views:
    9,108
    Jacek Dziedzic
    Nov 3, 2004
Loading...

Share This Page