Re: cryptographic service provider problem
From: Duane Laflotte (dlaflotte_at_criticalsites.com)
Date: 05/25/05
- Next message: Reza: "Re: ASP security"
- Previous message: Duane Laflotte: "Re: ASP security"
- In reply to: Eli Kremer: "cryptographic service provider problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 25 May 2005 14:34:18 -0400
Eli,
That is weird that it used to work and now is busted. I agree with the
thought that it may be a problem with the MachineKeyStore permissions. If
that is the case I would make sure that the ASPNET user has access to the
<root drive:>\Documents and Settings\All Users\Application
Data\microsoft\crypto\rsa\MachineKeys directory. This is a bit of a long
shot though, as it did worked before, but I would still check it out.
Hope this helps,
-- Duane Laflotte MCSE, MCSD, MCDBA, MCSA, MCT, MCP+I dlaflotte@criticalsites.com http://www.criticalsites.com/dlaflotte "Eli Kremer" <ilyakremer@mail.ru> wrote in message news:060d01c56155$72c38da0$a401280a@phx.gbl... > I get an error "CryptoAPI cryptographic service provider > (CSP) for this implementation could not be acquired" > > I used MachineKey store and DefaultKeyStore in order to > define a key container: > > const int PROVIDER_RSA_FULL = 1; > const string CONTAINER_NAME = "SpiderContainer"; > CspParameters cspParams; > cspParams = new CspParameters(PROVIDER_RSA_FULL); > cspParams.KeyContainerName = CONTAINER_NAME; > cspParams.Flags = > CspProviderFlags.UseDefaultKeyContainer;//UseMachineKeySto > re > cspParams.ProviderName = "Microsoft Strong > Cryptographic Provider"; > rsa = new RSACryptoServiceProvider(cspParams); > > This code fails in last row. Before some time this code > worked perfectly! I didn't perform any changes, but it > stopped working!I think there could be problems with > security srights to Machinekeystore. Thank to everybody > who can help me. >
- Next message: Reza: "Re: ASP security"
- Previous message: Duane Laflotte: "Re: ASP security"
- In reply to: Eli Kremer: "cryptographic service provider problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]