O
ondrej421
Hi there,
On some computers running Windows XP, the ProtectData() method sometimes
throws the following CryptographicException:
Type: System.Security.Cryptography.CryptographicException
Message: The system cannot find the file specified.
Source: System.Security
Stack Trace:
at System.Security.Cryptography.ProtectedData.Protect(Byte[] userData,
Byte[] optionalEntropy, DataProtectionScope scope)
...
This is how the method is being called:
byte[] encrypted = ProtectedData.Protect(plain, null,
DataProtectionScope.CurrentUser);
I can't find an answer to why this would be happening. Can anyone think of a
possible reason?
Thank you!
On some computers running Windows XP, the ProtectData() method sometimes
throws the following CryptographicException:
Type: System.Security.Cryptography.CryptographicException
Message: The system cannot find the file specified.
Source: System.Security
Stack Trace:
at System.Security.Cryptography.ProtectedData.Protect(Byte[] userData,
Byte[] optionalEntropy, DataProtectionScope scope)
...
This is how the method is being called:
byte[] encrypted = ProtectedData.Protect(plain, null,
DataProtectionScope.CurrentUser);
I can't find an answer to why this would be happening. Can anyone think of a
possible reason?
Thank you!