When invoking SetPassword you receive the error: “Exception has been thrown by the target of an invocation.”

This error usually results from a permissions problem. Check the permissions on the account you are using for your BizTalk Host Instance, or in your Authentication Override.

To diagnose, try the operation again using an account with administrator permissions.