Hi there,
We have functionality that resets a password for a webuser. We use the class CryptoServiceProvider to generate salt and generate secure password hash codes.
All our environments were recently updated to Platform release Update29, Application release 10.0.5.
When I run the code in our development environment, the password is reset and no error is thrown.
When I run the same functionality in Production and UAT, it throws an error:
Error executing code: Wrong type of argument for conversion function.
The code is very simple:
this.UserPasswordIterations = 1000;
this.UserPasswordSalt = CryptoServiceProvider::generateSalt();
this.UserPasswordHash = CryptoServiceProvider::computeSaltedHash(_newPassword,this.UserPasswordSalt,this.UserPasswordIterations);
The catch is that it runs through the complete code and updates the password correctly. We just need the error to go away because the same functionality is used with integration. When integrating, integration sends back a fail response because of this error.
All the code is exactly the same across all environments as we are using Azure DevOps for code and deployment.
Does anyone have any idea how I can narrow down what causes this error?