Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Security (http://www.velocityreviews.com/forums/f62-asp-net-security.html)
-   -   CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired (http://www.velocityreviews.com/forums/t768869-cryptoapi-cryptographic-service-provider-csp-for-this-implementation-could-not-be-acquired.html)

Kim H 08-14-2006 10:29 AM

CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired
 
I have made a crypto assembly that is used in a ASP .NET application
(framework 1.1).
in this assembly I have the following code:

CspParameters cp = new CspParameters();
cp.KeyContainerName = "myContainer";
cp.Flags = CspProviderFlags.UseMachineKeyStore;
RSA cryptKey = new RSACryptoServiceProvider(cp);

It seems to be running fine, but now we are trying to loadtest the
application.
With pretty heavy load it is running fine for maybe 20-25 minutes, but then
we start seeing these exceptions:

"CryptoAPI cryptographic service provider (CSP) for this implementation
could not be acquired"
StackTrace= at
System.Security.Cryptography.RSACryptoServiceProvi der..ctor(Int32 dwKeySize,
CspParameters parameters, Boolean useDefaultKeySize)

I'm pretty clueless why it only appears after some time has past, but it
seems that maybe something is not garbage collected or maybe
RSACryptoServiceProvider is not thread safe?

Does anyone have an idea why this is happening or what could be done to
prevent it?

Thanks,
Kim




All times are GMT. The time now is 02:59 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57