Re: Any ideas what the solution is, to this problem in an asp.net c# web page??? (CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired.)

From: Steven Grayson [MSFT] (sgrayson@online.microsoft.com)
Date: 03/20/03


From: "Steven Grayson [MSFT]" <sgrayson@online.microsoft.com>
Date: Thu, 20 Mar 2003 08:44:37 -0800


See if this KB article is helpful. It addresses this error message.
http://support.microsoft.com/default.aspx?scid=KB;EN-US;322371

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Justin" <Justin__Barnes@Hotmail.Com> wrote in message
news:#2#8Vxu7CHA.2348@TK2MSFTNGP12.phx.gbl...
> CryptoAPI cryptographic service provider (CSP) for this implementation
could
> not be acquired.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> Exception Details: System.Security.Cryptography.CryptographicException:
> CryptoAPI cryptographic service provider (CSP) for this implementation
could
> not be acquired.
>
> Source Error:
>
> Line 83: dbConnection.Close();
> Line 84: // RSACryptoServiceProvider RSA = new
> RSACryptoServiceProvider(2);
> Line 85: DSACryptoServiceProvider DSA = new DSACryptoServiceProvider(32);
> Line 86:
> Line 87: // RSAParameters RSAKeyInfo = RSA.ExportParameters(false);
>
>


Relevant Pages