Cryptography with ASP .NET

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
Was this answer helpful?

Related Articles

I am receiving System.Security.SecurityException or That assembly does not allow partially trusted callers.

When running your application you may see: That assembly does not allow...

How can I redirect one URL to another on ASP .NET?

Our ASP plans have the following installed:...

I am getting a 404 error on the secondary pages of my MVC application. Why?

To resolve the 404 error issues on secondary pages of a ASP .NET MVC applications, you will need...

My site is showing the following error: HTTP Error 503. The service is unavailable.

The error HTTP Error 503. The service is unavailable. generally means that your application pool...

Do you have a connection string I can use to connect to the local MSSQL database?

Yes. Please use the following connection string and fill in the necessary spots...