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

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
 
C

Cowboy \(Gregory A. Beamer\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top