Knowledgebase: ASP .NET / ASP
Cryptography with ASP .NET
Posted by Arvand Sabetian (Import) on 12 March 2009 07:13 PM
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
(170 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).