Error object

L

Lars Mollerup

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
 
B

Bob Barrows [MVP]

Lars said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top