GetLastError

D

dev

Hi all,
Win2k IIS5
I am trying to capture some information about 404 errors occurring on our
website. I have defined a custom error page in IIS5 using the properties of
the site. I am creating a 404 error by mistyping an address. The custom
404 page is called, but there is no data in Server.GetLastError.

Code:
Dim objError
Set objError = Server.GetLastError()
strNumber = objError.AspCode
strSource = objError.Category
strPage = objError.File
strDesc = objError.Description

What have I missed?

TIA,
Steve
 

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
474,141
Messages
2,570,818
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top