DPAPI - decrypt error: Decryption failed. Key not valid for use in specified state.

  • Thread starter Thread starter BigLuzer
  • Start date Start date
B

BigLuzer

hi

i am using the following setup:
- .net 1.1
- 2 load-balanced iis servers
- DPAPI machine store.
- C#
- i encrypted the connection string separately, one on each machine.

the error i get is: - Exception decrypting. Decryption failed. Key not
valid for use in specified state. BUT ONLY ON ONE MACHINE???

System.Exception: Exception decrypting. Decryption failed. Key not
valid for use in specified state.

Components.Security.DataProtector.Decrypt(Byte[] cipherText, Byte[]
optionalEntropy)
Components.Data.DBHelper.GetDecryptedData(String _enctryptedData)


any ideas? please help

thanks
cj
 
Did you export the key from one server to the other so they are both set up
the same? If not, you are using mismatched keys, which will cause an
encryption/decryption error.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside the box!
*************************************************
 
Back
Top