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.

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

*************************************************
Think outside the box!
*************************************************
 

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

Top