Greetings!
The batch jobs we created for sending e-mails stopped working since last friday. When I took a look at the error logs, this message was shown: "Method 'send' in COM object of class 'CDO.Message' returned error code 0x80040211 (<unknown>) which means: <unknown>."
When I debugged and searched through the code, I figured out the error happened when the SysEmailParameters table Password method was used. After searching a little more, I found out the error actually happens in the WinAPIServer class CryptUnprotectData method in the following code:
arrayOfByteOutput = CLRInterop::staticInvoke('System.Security.Cryptography.ProtectedData', 'Unprotect',
arrayOfByteInput, optionalEntropy,
CLRInterop::parseClrEnum('System.Security.Cryptography.DataProtectionScope', 'CurrentUser'));
I could get a more specific error message (by using Try... Catch) and it was: "Key not valid for use in specified state".
This problem started after we changed the server in which the batch jobs are executed.
Surely, we must change some server configuration, I don't have any idea about what could it be and I'm not finding any clue anywhere... Can somebody help me?
Thanks in advance!
Luiz Bezerra