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

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default 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


    Sven-Torben Janus Guest

  2. Similar Questions and Discussions

    1. CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired during encryption
      Hi, We are trying to encrypt and decrypt some fields using RSA algorithm.The class being used is RSACryptoServiceProvider.We have put a key in its...
    2. how to get the supported cryptographic algorithm on the current .n
      how to get the supported cryptographic algorithm on the current .net platform?
    3. error installing patch because cryptographic service is not running
      I'm attempting to install the latest patch - 823980 and I get an error in the install: "Setup could not verify the integrity of the file...
    4. Using Microsoft Cryptographic API in a .Net web service.
      Hi, I used the Microsoft Cryptographic API in VB6, worked fine. It works well in a VB.Net window application as well. However, it does not work...
    5. Can't find a cryptographic service provider (CSP) in this algorythm...
      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...
  3. #2

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

    Perhaps this will help:
    [url]http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&safe=off&threadm=433601c37c63%24788f2740%24a5012 80a%40phx.gbl&rnum=7&prev=/groups%3Fq%3Dsite:msdn.microsoft.com%2B%2522Crypto graphic%2Bservice%2Bprovider%2B(CSP)%2Bcould%2Bnot %2Bbe%2Bfound%2Bfor%2Bthis%2Balgorithm%2522%26hl%3 Den%26lr%3D%26ie%3DUTF-8%26safe%3Doff%26selm%3D433601c37c63%2524788f2740% 2524a501280a%2540phx.gbl%26rnum%3D7[/url]

    Sincerely
    Svein Terje Gaup

    "Sven-Torben Janus" <s-tjanus@gmx.de> wrote in message
    news:chl94q$qp6$05$1@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
    >
    >

    Svein Terje Gaup Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139