K
Kuntesh Desai
Hi!
I am trying to retrieve user details from a Windows 2000 Active Directory using ADO and am successful to retrieve all info except the Postal address... I get the following error when I try to use "PostalAddresses" property of an "IADsUser" object.
Following is the code that I have used...
Dim User As IADsUser
Set User = GetObject(rs("adspath"))
'rs is a recordset object containing AD info.
UserFName = User.FirstName
UserLName = User.LastName
UserDepartmentName = User.Department
UserTelePhoneNo = User.TelephoneNumber
'Alls well till this point...
UserAddress = User.PostalAddresses()
Here is where I get following error :-
Number :- -2147463155
Description :- "The Active Directory property cannot be found in the cache."
Would appreciate if someone points out what the problem on hand is and suggest a workaround for the same.
Thanks in advance,
Kuntesh Desai
I am trying to retrieve user details from a Windows 2000 Active Directory using ADO and am successful to retrieve all info except the Postal address... I get the following error when I try to use "PostalAddresses" property of an "IADsUser" object.
Following is the code that I have used...
Dim User As IADsUser
Set User = GetObject(rs("adspath"))
'rs is a recordset object containing AD info.
UserFName = User.FirstName
UserLName = User.LastName
UserDepartmentName = User.Department
UserTelePhoneNo = User.TelephoneNumber
'Alls well till this point...
UserAddress = User.PostalAddresses()
Here is where I get following error :-
Number :- -2147463155
Description :- "The Active Directory property cannot be found in the cache."
Would appreciate if someone points out what the problem on hand is and suggest a workaround for the same.
Thanks in advance,
Kuntesh Desai