CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired 
Author Message
 CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired

trying to do some asymmetric encryption.
I have windows 2000 professional with service pack 3 installed.
in a web service application I have WebMethod listed below.
an exception is being generated from the Dim RSA as new
RSACryptoServiceProvider() line with a message of
"CryptoAPI cryptographic service provider (CSP) for this implementation
could not be acquired"
I have 128 bit encryption ability. Any clues?

Note* this code was taken from visual studio magazine article by Wei Meng
Lee
<WebMethod()> Public Function GetKey() As String

Dim publicPara As String

Dim privatepara As String

Dim result As String

Try

     Dim RSA As New RSACryptoServiceProvider()  ' ***EXCEPTION is gernerated
here

    publicPara = RSA.ToXmlString(False) ' gets the public key

    privatepara = RSA.ToXmlString(True) ' gets the private key

    Application("publicKey") = publicPara

    Application("privateKey") = privatepara

    result = Application("publicKey")

 Catch gen As Exception

    result = gen.Message

End Try

Return result

End Function



Mon, 31 Jan 2005 07:27:40 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. why do i get this error "CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired."?

2. Exchange Cryptographic Provider

3. Help: csp-scripts are not executed but displayed as text

4. GridColumnStyle Paint method does not have an implementation

5. Microsoft OLE DB Provider for Indexing Service failure

6. Active Server Page - OLE DB Provider for Indexing Service error 80041605

7. GridColumnStyle Paint method does not have an implementation

8. MAPI Service Provider for Internet Mail

9. connecting to an internet service provider and then firing up IE from VB

10. Fail using Oracle9i client as the service provider

11. Data Provider or Other Service REturned an E_FAIL Status error

12. Create a custom service provider

 

 
Powered by phpBB® Forum Software