CryptographicException error - newbie question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Porty
    New Member
    • Oct 2007
    • 3

    CryptographicException error - newbie question

    Hi all,

    I admittedly don't know the first thing about .NET. I have a new client who has been having problems on her website and asked me to look into it (she has lost contact with the programmer who originally did this work for her). I know some programming languages, but this is not one of them and I am hoping someone can help me.

    My client has a real estate website and I get the following error (per her complaint) when I try and sign up for an account:
    CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired.
    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.C ryptographicExc eption: CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired.

    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:

    [CryptographicEx ception: CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired.]
    System.Security .Cryptography.R SACryptoService Provider..ctor( Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySi ze) +985
    System.Security .Cryptography.R SACryptoService Provider..ctor( ) +72
    thehudqueen.lib .dbMgr.encrypt( String myStr)
    thehudqueen.lib .dbMgr.addUser( userProfile myProfile)
    thehudqueen.Acc ounts.addIntere sts.butCreate_C lick(Object sender, EventArgs e)
    System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
    System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring eventArgument) +57
    System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl, String eventArgument) +18
    System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
    System.Web.UI.P age.ProcessRequ estMain() +1292


    Version Information: Microsoft .NET Framework Version:1.1.432 2.2407; ASP.NET Version:1.1.432 2.2407

    Looking through some of the code on her website, I see that it says C# and Javascript as some of the languages, but don't even know if I am looking in the right place.

    Any help would be greatly appreciated! Please let me know if I am posting this to the wrong forum - I assumed that it was .NET because of the last line in the error message.

    Thanks much.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Is this website hosted on a "https" server?
    It sounds like the encryption certificate is missing/expired?
    .Net was probably trying to use it to do the crypto and cannot find it anymore?

    Comment

    • Porty
      New Member
      • Oct 2007
      • 3

      #3
      When I submit the form, it says http - no "s". I will ask the owner about the encryption certificate. Thank you for the reply.


      Originally posted by Plater
      Is this website hosted on a "https" server?
      It sounds like the encryption certificate is missing/expired?
      .Net was probably trying to use it to do the crypto and cannot find it anymore?

      Comment

      • Porty
        New Member
        • Oct 2007
        • 3

        #4
        I wrote to my client but haven't heard anything yet. Do you know where I would find the encryption certificate? Would it be with the hosting company?

        Thanks again.

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          Yes, I believe the hosting company would have it.
          I'm not sure if it's relevant or not, but it's my only guess.

          Comment

          Working...