Re: Crypto Problem

Tarik Soulami <[email protected]> Tue, 25 Jun 2002 00:45:54 -0700
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <FDA786C04E4A034989BB35DC0D41DD4405109D12@red-msg-09.redmond.corp.microsoft.com>
This would be the case if we were specifying the CspProviderFlags.UseMachineKeyStore flag in the RSACryptoServiceProvider constructor that accepts a CspParameters.

By default, we try to use the user key store, but because the user profile for the ASPNET account is probably not loaded in this case, this will fail. Using the machine key store would work provided ASPNET has access to the directory below.

Thanks,
--Tarik

-----Original Message-----
From: Mattias Konradsson [mailto:[email protected]]
Sent: Sunday, June 23, 2002 6:12 PM
To: [email protected]
Subject: Re: [DOTNET] Crypto Problem


> I have created a webservice.
>
> When I try to use "RSACryptoServiceProvider" in this webservice I am
getting
> Exception
>
> Exception : CryptoAPI cryptographic service provider (CSP) for this
> implementation could not be acquired.
>
> What is this error?
>
> Dinesh Upare

It probably has to do with the rights to the  X:\Documents and Settings\All
Users\Application Data\Microsoft\Crypto\RSA\MachineKeys
directory, make sure that the ASPNET account has read/write rights to it

Best Regards
---
Mattias Konradsson
www.existic.com

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

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