Take a look at
Microsoft Cryptography API May Not Work If the Default CSP Has Been Set Incorrectly mskb#
Q313494.
>ALL,
>
>I am using crypt.vcx to provide database encryption/decryption. I have set the cprovidername to Microsoft Enhanced Cryptographic Provider v1.0 in the cryptapi object. This works fine on Windows NT , but on some WIN 2000 installations encryption/decryption did not work consistantly. I checked the registry to make sure Microsoft Enhanced Cryptographic Provider v1.0 was present. Finally set the ldisplaylowlevelerrors to true in cryptapi and got the following error:
>
>'Crypt Service Provider Failed to Acquire'
>
>Funny thing is that if the machine is rebooted first time the application runs everything is fine, but if I close the application and then run it again I get the above error.
>
>Any Ideas
>
>Thanks for yor help
--sb--