GaryHoff
asked on
How do I get a descriptive error message from Active Directory ChangePassword()?
When i call ActiveDs.IADsUser.ChangePa ssword() 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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.