473,387 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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.CryptographicExceptio n:
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.DESCryptoServiceProvi der..ctor() +239
System.Web.Security.FormsAuthentication.Initialize () +242
System.Web.Security.FormsAuthenticationModule.OnEn ter(Object source,
EventArgs eventArgs) +146
System.Web.SyncEventExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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
Nov 18 '05 #1
4 6889
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" <le*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:81**********************************@microsof t.com...
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.CryptographicExceptio n:
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.DESCryptoServiceProvi der..ctor() +239
System.Web.Security.FormsAuthentication.Initialize () +242
System.Web.Security.FormsAuthenticationModule.OnEn ter(Object source,
EventArgs eventArgs) +146
System.Web.SyncEventExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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

Nov 18 '05 #2
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-******@gmx.de> wrote in message
news:ej**************@TK2MSFTNGP15.phx.gbl...
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" <le*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:81**********************************@microsof t.com...
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.CryptographicExceptio n:
> 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.DESCryptoServiceProvi der..ctor() +239
> System.Web.Security.FormsAuthentication.Initialize () +242
> System.Web.Security.FormsAuthenticationModule.OnEn ter(Object source,
> EventArgs eventArgs) +146
> System.Web.SyncEventExecutionStep.Execute() +60
> System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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
>
>
>


Nov 18 '05 #3
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]" <ds**@online.microsoft.com> schrieb im Newsbeitrag
news:Oc**************@TK2MSFTNGP15.phx.gbl...
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-******@gmx.de> wrote in message
news:ej**************@TK2MSFTNGP15.phx.gbl...
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" <le*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:81**********************************@microsof t.com...
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.CryptographicExceptio n:
> 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.DESCryptoServiceProvi der..ctor() +239
> System.Web.Security.FormsAuthentication.Initialize () +242
> System.Web.Security.FormsAuthenticationModule.OnEn ter(Object

source, > EventArgs eventArgs) +146
> System.Web.SyncEventExecutionStep.Execute() +60
> System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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
>
>
>



Nov 18 '05 #4
Perhaps this will help:
http://groups.google.com/groups?hl=e...gbl%26rnum%3D7

Sincerely
Svein Terje Gaup

"Sven-Torben Janus" <s-******@gmx.de> wrote in message
news:ch*************@news.t-online.com...
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.CryptographicExceptio n:
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.DESCryptoServiceProvi der..ctor() +239
System.Web.Security.FormsAuthentication.Initialize () +242
System.Web.Security.FormsAuthenticationModule.OnEn ter(Object source,
EventArgs eventArgs) +146
System.Web.SyncEventExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: New Devil | last post by:
hi can anybody tell me wat is media service provider??? thanx Ibrahim ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1...
1
by: johnm | last post by:
Hello, We would like to outsource the care and feeding of our various DB2 systems. Does anyone know of a Managed Service Provider that is good at working with DB2, and is good with customer...
4
by: Dave Bailey | last post by:
I have an application installed on a web server. When forst intalled it worked fine. The administrator rebooted the server and then when accessing the app the folowing error appears: CryptoAPI...
0
by: Andrés Giraldo | last post by:
Hi! I'm trying to use a System.Security.Criptography function, it works on my machine but when I publish the site, it gives me the following error: Can't find a cryptographic service provider...
0
by: Gabor | last post by:
Hi All, In my aspnet app. I'm using forms authentication. This site works on many intranet. On one place I got the crypto service provider error with the following stack trace, that I didn't...
0
by: Mike P | last post by:
This is a very weird problem, when I boot my IIS server I get a CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired exception. However, once I access my...
2
by: GRB | last post by:
A client wants me to decrypt a cookie. They encrypted the data in java using TripleDES. The key provided is a 168 bit 44 character key, DESede alogorithm. Ive tried to decrypt in vb.net and get the...
0
by: gubevijay | last post by:
Hi, If anyone know web service provider for xml xsd validation. please provide me the links of those sites. Thanks Gube.
1
by: =?Utf-8?B?c3VyZmtlaXRo?= | last post by:
A machine running XP Home fails to start the cryptographic service. When attempting to start from the services menu it responds with error 2: the file specified cannot be found. I am unable to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.