Cryptography Application block - Key not valid for use in specified state

Last post 09-18-2006 9:46 AM by tomz. 1 replies.

Sort Posts:

  • Cryptography Application block - Key not valid for use in specified state

    09-15-2006, 12:05 PM
    • Member
      619 point Member
    • tomz
    • Member since 02-05-2003, 10:18 AM
    • Posts 150

    I use Enterprise libraray Cryptography Application block to do encryption/decryption. On develpment machine, everything works properly when I call Cryptographer.EncryptSymmetric method. However, on production server, I got the error - Key not valid for use in specified state. It is the same application with the same key that I deployed to the server. Could anyone know why and how to [:'(]fix this? Thanks,

    Tom

    Tomz
  • Re: Cryptography Application block - Key not valid for use in specified state

    09-18-2006, 9:46 AM
    • Member
      619 point Member
    • tomz
    • Member since 02-05-2003, 10:18 AM
    • Posts 150
    This posting: http://forums.asp.net/thread/1400737.aspx solved my issue. I installed Enterprise Manager on production server to make the Enterprise Library Configuration app available and then create a key on that machine.
    Tomz
Page 1 of 1 (2 items)