Error object

Discussion in 'ASP General' started by Lars Mollerup, Oct 7, 2004.

  1. Hello ev'body!

    I'm reading 'ASP in a nutshell' and i'm trying out the error trapping
    features. The book says that from ASP 3.0 on there is a server object method
    called GetLastError. It also advocates this beiing the best way of analyzing
    errors.

    I do not have this method on my IIS installation. (All the other ASP code I
    run according to the book is ok).

    I have Windows NT 4.00.1381 and IIS 4.0 (Is my IIS version to old?) If this
    is the case what is the best approach in trapping errors?


    TIA

    Lars Mollerup
    NIVA, Norway
    Lars Mollerup, Oct 7, 2004
    #1
    1. Advertising

  2. Lars Mollerup wrote:
    > Hello ev'body!
    >
    > I'm reading 'ASP in a nutshell' and i'm trying out the error trapping
    > features. The book says that from ASP 3.0 on there is a server object
    > method called GetLastError. It also advocates this beiing the best
    > way of analyzing errors.
    >
    > I do not have this method on my IIS installation. (All the other ASP
    > code I run according to the book is ok).
    >
    > I have Windows NT 4.00.1381 and IIS 4.0 (Is my IIS version to old?)


    Yes. That object was introduced with IIS5.

    > If this is the case what is the best approach in trapping errors?


    There is none. Just muddle along the way the rest of us still using IIS4
    have to do.

    On Error Resume Next
    <statement that could potentially raise error>
    If err <> 0 then
    <handle the error>
    end if

    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    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 [MVP], Oct 7, 2004
    #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. Parthiv Joshi
    Replies:
    2
    Views:
    680
    Kalyan
    Jul 2, 2004
  2. Suresh Kojhani
    Replies:
    1
    Views:
    2,376
    Anushi
    Jul 29, 2004
  3. Pedro Correia
    Replies:
    0
    Views:
    622
    Pedro Correia
    Jul 25, 2003
  4. jon wayne
    Replies:
    9
    Views:
    705
    Jim Langston
    Sep 22, 2005
  5. Gavin
    Replies:
    3
    Views:
    468
    Chris Uppal
    Mar 28, 2007
Loading...

Share This Page