PC Review


Reply
Thread Tools Rate Thread

Cryptographic service provider (CSP) could not be found for this algorithm.

 
 
Sven-Torben Janus
Guest
Posts: n/a
 
      7th Sep 2004
I'm running an ASP.NET webapplication on a Windows 2000 Server SP4 machine
with .Net Framework 1.0 installed.

The ASP.Net application uses impersonation (windows domain account). This is
needed for communication between two servers (some ldap stuff).
Furthermore the application uses FormsAuthentication. At some point the
FomrAuthentication.Decrypt method is called. At this point I get the
following error:


Cryptographic service provider (CSP) could not be found for this algorithm.
Description: An unhandled exception occurred during the execution of the
current web request.
Please review the stack trace for more information about the error and where
it originated in the code.

Exception Details:
System.Security.Cryptography.CryptographicException:
Cryptographic service provider (CSP) could not be found for this algorithm.

Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:

[CryptographicException: Cryptographic service provider
(CSP) could not be found for this algorithm.]

System.Security.Cryptography.DESCryptoServiceProvider..ctor() +239
System.Web.Security.FormsAuthentication.Initialize() +242
System.Web.Security.FormsAuthenticationModule.OnEnter(Object source,
EventArgs eventArgs) +146
System.Web.SyncEventExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +87




The application runs fine on another Win2K SP4 machine and also on some
other WinXP machines.
I tried to install the Windows 2000 High Encryption Package. But that didn't
solve the problem.
The error doesn't occur when I turn impersonation off. But the application
needs impersonation so this is no solution.

So what to do ?
I searched msdn and the internet but I couldn't find anything that solves
the problem.

Any help is appreciatet.

Thanks in advance.

Sven-Torben


 
Reply With Quote
 
 
 
 
Sven-Torben Janus
Guest
Posts: n/a
 
      8th Sep 2004
Hello,

thanks for your reply.

It does not seem to be the algorithm.
I did a lot of testing today. It must have something to do with user
permissions.
If I give administrator-priviliges to the aspnet user and to my domain user
(the one I use for impersonation) everything works fine. (I really don't
like that).

I tried all possible combinations of user priviliges (also all the ones
suggested in different newsgroups) but that doesn't solve the problem.
I tried filemon and regmon but I could not find any errors.
If I disable impersonation everything works fine as well.

btw: IIS uses IntegratedWindowsAuthentication and AnonymousAuthentication
but I tried all possible combinations. No success.

Do you have any other suggestions ?

Regards,

Sven-Torben

"lelteto" <(E-Mail Removed)> schrieb im Newsbeitrag
news:81AE20AA-B0D3-4FC8-845D-(E-Mail Removed)...
> Can you check if the algorithm used is AES? That would explain your

problem.
> The MS CSP handling AES is not by default installed on Windows 2000 -
> although you CAN install it (that's why on some computers it works). It is
> installed on Windows XP. If this is, in fact, your problem you can solve

it
> in two ways:
> 1. Make sure the AES CSP is installed on your target machines
> 2. or switch to Triple-DES as algorithm.
>
> Laszlo Elteto
> SafeNet, Inc.
>
> "Sven-Torben Janus" wrote:
>
> > I'm running an ASP.NET webapplication on a Windows 2000 Server SP4

machine
> > with .Net Framework 1.0 installed.
> >
> > The ASP.Net application uses impersonation (windows domain account).

This is
> > needed for communication between two servers (some ldap stuff).
> > Furthermore the application uses FormsAuthentication. At some point the
> > FomrAuthentication.Decrypt method is called. At this point I get the
> > following error:
> >
> >
> > Cryptographic service provider (CSP) could not be found for this

algorithm.
> > Description: An unhandled exception occurred during the execution of the
> > current web request.
> > Please review the stack trace for more information about the error and

where
> > it originated in the code.
> >
> > Exception Details:
> > System.Security.Cryptography.CryptographicException:
> > Cryptographic service provider (CSP) could not be found for this

algorithm.
> >
> > Source Error:
> > An unhandled exception was generated during the execution of the current

web
> > request. Information regarding the origin and location of the exception

can
> > be identified using the exception stack trace below.
> >
> > Stack Trace:
> >
> > [CryptographicException: Cryptographic service provider
> > (CSP) could not be found for this algorithm.]
> >
> > System.Security.Cryptography.DESCryptoServiceProvider..ctor() +239
> > System.Web.Security.FormsAuthentication.Initialize() +242
> > System.Web.Security.FormsAuthenticationModule.OnEnter(Object source,
> > EventArgs eventArgs) +146
> > System.Web.SyncEventExecutionStep.Execute() +60
> > System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
> > completedSynchronously) +87
> >
> >
> >
> >
> > The application runs fine on another Win2K SP4 machine and also on some
> > other WinXP machines.
> > I tried to install the Windows 2000 High Encryption Package. But that

didn't
> > solve the problem.
> > The error doesn't occur when I turn impersonation off. But the

application
> > needs impersonation so this is no solution.
> >
> > So what to do ?
> > I searched msdn and the internet but I couldn't find anything that

solves
> > the problem.
> >
> > Any help is appreciatet.
> >
> > Thanks in advance.
> >
> > Sven-Torben
> >
> >
> >



 
Reply With Quote
 
Daniel Sie [MSFT]
Guest
Posts: n/a
 
      10th Sep 2004
I doubt this has anything to do with privileges. May be the user profile
need to be loaded.

--
Thanks,

Daniel Sie [MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.
"Sven-Torben Janus" <s-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> thanks for your reply.
>
> It does not seem to be the algorithm.
> I did a lot of testing today. It must have something to do with user
> permissions.
> If I give administrator-priviliges to the aspnet user and to my domain
> user
> (the one I use for impersonation) everything works fine. (I really don't
> like that).
>
> I tried all possible combinations of user priviliges (also all the ones
> suggested in different newsgroups) but that doesn't solve the problem.
> I tried filemon and regmon but I could not find any errors.
> If I disable impersonation everything works fine as well.
>
> btw: IIS uses IntegratedWindowsAuthentication and AnonymousAuthentication
> but I tried all possible combinations. No success.
>
> Do you have any other suggestions ?
>
> Regards,
>
> Sven-Torben
>
> "lelteto" <(E-Mail Removed)> schrieb im Newsbeitrag
> news:81AE20AA-B0D3-4FC8-845D-(E-Mail Removed)...
>> Can you check if the algorithm used is AES? That would explain your

> problem.
>> The MS CSP handling AES is not by default installed on Windows 2000 -
>> although you CAN install it (that's why on some computers it works). It
>> is
>> installed on Windows XP. If this is, in fact, your problem you can solve

> it
>> in two ways:
>> 1. Make sure the AES CSP is installed on your target machines
>> 2. or switch to Triple-DES as algorithm.
>>
>> Laszlo Elteto
>> SafeNet, Inc.
>>
>> "Sven-Torben Janus" wrote:
>>
>> > I'm running an ASP.NET webapplication on a Windows 2000 Server SP4

> machine
>> > with .Net Framework 1.0 installed.
>> >
>> > The ASP.Net application uses impersonation (windows domain account).

> This is
>> > needed for communication between two servers (some ldap stuff).
>> > Furthermore the application uses FormsAuthentication. At some point the
>> > FomrAuthentication.Decrypt method is called. At this point I get the
>> > following error:
>> >
>> >
>> > Cryptographic service provider (CSP) could not be found for this

> algorithm.
>> > Description: An unhandled exception occurred during the execution of
>> > the
>> > current web request.
>> > Please review the stack trace for more information about the error and

> where
>> > it originated in the code.
>> >
>> > Exception Details:
>> > System.Security.Cryptography.CryptographicException:
>> > Cryptographic service provider (CSP) could not be found for this

> algorithm.
>> >
>> > Source Error:
>> > An unhandled exception was generated during the execution of the
>> > current

> web
>> > request. Information regarding the origin and location of the exception

> can
>> > be identified using the exception stack trace below.
>> >
>> > Stack Trace:
>> >
>> > [CryptographicException: Cryptographic service provider
>> > (CSP) could not be found for this algorithm.]
>> >
>> > System.Security.Cryptography.DESCryptoServiceProvider..ctor() +239
>> > System.Web.Security.FormsAuthentication.Initialize() +242
>> > System.Web.Security.FormsAuthenticationModule.OnEnter(Object source,
>> > EventArgs eventArgs) +146
>> > System.Web.SyncEventExecutionStep.Execute() +60
>> > System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
>> > completedSynchronously) +87
>> >
>> >
>> >
>> >
>> > The application runs fine on another Win2K SP4 machine and also on some
>> > other WinXP machines.
>> > I tried to install the Windows 2000 High Encryption Package. But that

> didn't
>> > solve the problem.
>> > The error doesn't occur when I turn impersonation off. But the

> application
>> > needs impersonation so this is no solution.
>> >
>> > So what to do ?
>> > I searched msdn and the internet but I couldn't find anything that

> solves
>> > the problem.
>> >
>> > Any help is appreciatet.
>> >
>> > Thanks in advance.
>> >
>> > Sven-Torben
>> >
>> >
>> >

>
>



 
Reply With Quote
 
Sven-Torben Janus
Guest
Posts: n/a
 
      10th Sep 2004
What do you mean by "the user profile need to be loaded" ?
How can I test this ? And why works everything fine when the ASPNET user has
administrator priviliges ?

Regards,

Sven-Torben


"Daniel Sie [MSFT]" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> I doubt this has anything to do with privileges. May be the user profile
> need to be loaded.
>
> --
> Thanks,
>
> Daniel Sie [MSFT]
>
> This posting is provided "AS IS" with no warranties, and confers no

rights.
> "Sven-Torben Janus" <s-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hello,
> >
> > thanks for your reply.
> >
> > It does not seem to be the algorithm.
> > I did a lot of testing today. It must have something to do with user
> > permissions.
> > If I give administrator-priviliges to the aspnet user and to my domain
> > user
> > (the one I use for impersonation) everything works fine. (I really don't
> > like that).
> >
> > I tried all possible combinations of user priviliges (also all the ones
> > suggested in different newsgroups) but that doesn't solve the problem.
> > I tried filemon and regmon but I could not find any errors.
> > If I disable impersonation everything works fine as well.
> >
> > btw: IIS uses IntegratedWindowsAuthentication and

AnonymousAuthentication
> > but I tried all possible combinations. No success.
> >
> > Do you have any other suggestions ?
> >
> > Regards,
> >
> > Sven-Torben
> >
> > "lelteto" <(E-Mail Removed)> schrieb im Newsbeitrag
> > news:81AE20AA-B0D3-4FC8-845D-(E-Mail Removed)...
> >> Can you check if the algorithm used is AES? That would explain your

> > problem.
> >> The MS CSP handling AES is not by default installed on Windows 2000 -
> >> although you CAN install it (that's why on some computers it works). It
> >> is
> >> installed on Windows XP. If this is, in fact, your problem you can

solve
> > it
> >> in two ways:
> >> 1. Make sure the AES CSP is installed on your target machines
> >> 2. or switch to Triple-DES as algorithm.
> >>
> >> Laszlo Elteto
> >> SafeNet, Inc.
> >>
> >> "Sven-Torben Janus" wrote:
> >>
> >> > I'm running an ASP.NET webapplication on a Windows 2000 Server SP4

> > machine
> >> > with .Net Framework 1.0 installed.
> >> >
> >> > The ASP.Net application uses impersonation (windows domain account).

> > This is
> >> > needed for communication between two servers (some ldap stuff).
> >> > Furthermore the application uses FormsAuthentication. At some point

the
> >> > FomrAuthentication.Decrypt method is called. At this point I get the
> >> > following error:
> >> >
> >> >
> >> > Cryptographic service provider (CSP) could not be found for this

> > algorithm.
> >> > Description: An unhandled exception occurred during the execution of
> >> > the
> >> > current web request.
> >> > Please review the stack trace for more information about the error

and
> > where
> >> > it originated in the code.
> >> >
> >> > Exception Details:
> >> > System.Security.Cryptography.CryptographicException:
> >> > Cryptographic service provider (CSP) could not be found for this

> > algorithm.
> >> >
> >> > Source Error:
> >> > An unhandled exception was generated during the execution of the
> >> > current

> > web
> >> > request. Information regarding the origin and location of the

exception
> > can
> >> > be identified using the exception stack trace below.
> >> >
> >> > Stack Trace:
> >> >
> >> > [CryptographicException: Cryptographic service provider
> >> > (CSP) could not be found for this algorithm.]
> >> >
> >> > System.Security.Cryptography.DESCryptoServiceProvider..ctor() +239
> >> > System.Web.Security.FormsAuthentication.Initialize() +242
> >> > System.Web.Security.FormsAuthenticationModule.OnEnter(Object

source,
> >> > EventArgs eventArgs) +146
> >> > System.Web.SyncEventExecutionStep.Execute() +60
> >> > System.Web.HttpApplication.ExecuteStep(IExecutionStep step,

Boolean&
> >> > completedSynchronously) +87
> >> >
> >> >
> >> >
> >> >
> >> > The application runs fine on another Win2K SP4 machine and also on

some
> >> > other WinXP machines.
> >> > I tried to install the Windows 2000 High Encryption Package. But that

> > didn't
> >> > solve the problem.
> >> > The error doesn't occur when I turn impersonation off. But the

> > application
> >> > needs impersonation so this is no solution.
> >> >
> >> > So what to do ?
> >> > I searched msdn and the internet but I couldn't find anything that

> > solves
> >> > the problem.
> >> >
> >> > Any help is appreciatet.
> >> >
> >> > Thanks in advance.
> >> >
> >> > Sven-Torben
> >> >
> >> >
> >> >

> >
> >

>
>



 
Reply With Quote
 
Svein Terje Gaup
Guest
Posts: n/a
 
      15th Sep 2004
Perhaps this will help:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&safe=off&threadm=433601c37c63%24788f2740%24a501280a%40phx.gbl&rnum=7&prev=/groups%3Fq%3Dsite:msdn.microsoft.com%2B%2522Cryptographic%2Bservice%2Bprovider%2B(CSP)%2Bcould%2Bnot%2Bbe%2Bfound%2Bfor%2Bthis%2Balgorithm%2522%26hl%3Den%26lr%3D%26ie%3DUTF-8%26safe%3Doff%26selm%3D433601c37c63%2524788f2740%2524a501280a%2540phx.gbl%26rnum%3D7

Sincerely
Svein Terje Gaup

"Sven-Torben Janus" <s-(E-Mail Removed)> wrote in message
news:chl94q$qp6$05$(E-Mail Removed)...
> I'm running an ASP.NET webapplication on a Windows 2000 Server SP4 machine
> with .Net Framework 1.0 installed.
>
> The ASP.Net application uses impersonation (windows domain account). This
> is
> needed for communication between two servers (some ldap stuff).
> Furthermore the application uses FormsAuthentication. At some point the
> FomrAuthentication.Decrypt method is called. At this point I get the
> following error:
>
>
> Cryptographic service provider (CSP) could not be found for this
> algorithm.
> Description: An unhandled exception occurred during the execution of the
> current web request.
> Please review the stack trace for more information about the error and
> where
> it originated in the code.
>
> Exception Details:
> System.Security.Cryptography.CryptographicException:
> Cryptographic service provider (CSP) could not be found for this
> algorithm.
>
> Source Error:
> An unhandled exception was generated during the execution of the current
> web
> request. Information regarding the origin and location of the exception
> can
> be identified using the exception stack trace below.
>
> Stack Trace:
>
> [CryptographicException: Cryptographic service provider
> (CSP) could not be found for this algorithm.]
>
> System.Security.Cryptography.DESCryptoServiceProvider..ctor() +239
> System.Web.Security.FormsAuthentication.Initialize() +242
> System.Web.Security.FormsAuthenticationModule.OnEnter(Object source,
> EventArgs eventArgs) +146
> System.Web.SyncEventExecutionStep.Execute() +60
> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
> completedSynchronously) +87
>
>
>
>
> The application runs fine on another Win2K SP4 machine and also on some
> other WinXP machines.
> I tried to install the Windows 2000 High Encryption Package. But that
> didn't
> solve the problem.
> The error doesn't occur when I turn impersonation off. But the application
> needs impersonation so this is no solution.
>
> So what to do ?
> I searched msdn and the internet but I couldn't find anything that solves
> the problem.
>
> Any help is appreciatet.
>
> Thanks in advance.
>
> Sven-Torben
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error:Cryptographic service provider (CSP) could not be found Gabor Microsoft ASP .NET 0 22nd Dec 2004 08:24 PM
Cryptographic service provider not found for this algorithm johnny@liquidzone.net Microsoft Dot NET Framework 1 15th Dec 2004 04:23 PM
Cryptographic service provider Rosslyn Windows XP General 1 21st Sep 2004 09:22 PM
Cryptographic service provider Rosslyn Windows XP Performance 1 21st Sep 2004 09:14 PM
Cryptographic service provider (CSP) could not be found for this algorithm. Sven-Torben Janus Microsoft ASP .NET 3 10th Sep 2004 08:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:34 AM.