mark
10-20-2003, 07:04 AM
Anyone here tried using the crypto sevice providers from the System.Security.Cryptography namespace? I'm trying to encrypt some data and send it to my Web Service using the RSACryptoServiceProvider class.
Creating an instance of this class generates the following exception:
System.Security.Cryptography.CryptographicExceptio n: CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired.
at System.Security.Cryptography.RSACryptoServiceProvi der..ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize)
at System.Security.Cryptography.RSACryptoServiceProvi der..ctor()
The problem seems to be with the asymetric providers (RSA, DSA). Symetric providers (DES, etc.) appear to work.
I can instantiate and use any of these classes on my local IIS server just fine.
Thanks
Creating an instance of this class generates the following exception:
System.Security.Cryptography.CryptographicExceptio n: CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired.
at System.Security.Cryptography.RSACryptoServiceProvi der..ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize)
at System.Security.Cryptography.RSACryptoServiceProvi der..ctor()
The problem seems to be with the asymetric providers (RSA, DSA). Symetric providers (DES, etc.) appear to work.
I can instantiate and use any of these classes on my local IIS server just fine.
Thanks