Runtime password change

During runtime when project SECURITY MODE in DISTRIBUTED SERVER
PASSWORD CHANGE SHOWING ERROR like invalid.

Then I have to cancel the window. but I have seen password actually changed.
I used the following function. If it is in local mode then it is changing without error.

SetPassword( strUserName, optStrNewPassword )
any solution!!!!