How to get ADSI Err.Description ???

F

F C

I have ASP page on W2K SP4 server.

I have the following excerpt of code:

On Error resume next

Set myObj = GetObject ( DN)

ErrNo = Err.number
ErrTxt = Err.Description

Err.Clear

On Error goto 0

If ErrNo <> 0 Then

Here my error processing code.
I have here ErrNo = 0x80072030, with means that ldap object not found,
but ErrTxt is blank.

End If

How can I have Err.Description filled. Because there are some errors which
are part of the normal processing flow and I dont care of Err.Description,
but other errors are "abnormal" and I want to show them to the user with
some meaning.

Thanks for help.
François.
 

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