Link to home
Start Free TrialLog in
Avatar of GaryHoff
GaryHoff

asked on

How do I get a descriptive error message from Active Directory ChangePassword()?

When i call  ActiveDs.IADsUser.ChangePassword() with valid parameters, it works fine.

When i call it with bad old or new password I get an exception with the error message of:
"A constraint violation occurred. (Exception from HRESULT: 0x8007202F)", and it seems to be the same no matter what the error condition (wrong old password, or new too short)
How do I get a better error message?
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial