
Hi.
I use System.DirectoryServices.DirectoryEntry to create a user on ActiveDirectory. I can create and I can setpasswrord.
But my problem is, when I set a password, I can't catch the error if the password doesn't respect the password rules. AX stop on the method INVOKE("SetPassword", ...) and not on the catch(Exception::Error)
When I set a good password, it's works fine. So, I would like to use the Try Catch and return some error message.
any idea ???
Regards
Dany
*This post is locked for comments
I have the same question (0)Use catch(Exception::ClrError) instead. See also AifUtil::getClrErrorMessage() - you can use it inside the catch block.