I have a method that digitally signs an XML document.  When I run this
method in a console it works but when I run it in a web service it
crashes at:

 

DSA objDSAkey = DSA.Create(); 

 

I get an error saying:

 

Digital Signature Program

System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. --->
System.Security.Cryptography.CryptographicException: CryptoAPI
cryptographic service provider (CSP) for this implementation could not
be acquired.

   at System.Security.Cryptography.DSACryptoServiceProvider..ctor(Int32
dwKeySize, CspParameters parameters)

   at System.Security.Cryptography.DSACryptoServiceProvider..ctor()   

 

Am I missing something?  Thanks for your help.

      

 

Katerina Tsarouchas

Software Developer

Level Platforms Inc.

36 Antares Drive, Suite 200, Ottawa, Ontario

* 613-232-1791

* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


 

Please visit us at http://www.levelplatforms.com
<http://www.levelplatforms.com> 

 

 


You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to