A customer received the following error when attempting to create a RSACryptoServiceProvider from the privatekey already in the code:
CryptographicException: The system cannot find the file specified.
System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer) +7712542
System.Security.Cryptography.RSACryptoServiceProvider.ImportParameters(RSAParameters parameters) +258
System.Security.Cryptography.RSA.FromXmlString(String xmlString) +470
SignXml.SignXml.Page_Load(Object sender, EventArgs e) +417
A workaround for this can be found here:
http://www.codeproject.com/KB/security/EZRSA.aspx
- 0 Users Found This Useful