encryption - Moved asp.net site to new server, getting "Key not valid for use in specified state." error -


I have set up a new, clean servers to run our asp.net 4 website. I imported the configuration of one of the existing servers, copied it to the wwwroot folder, and imported the PFX file from the "old" server.

The new server process the following error throws during the payment of our website shopping cart and carriage:

 [CryptographicException: Key is not valid for use in specified state .] System.Security.Cryptography.ProtectedData.Unprotect (byte [] encryptedData, byte [] optionalEntropy, +15 data Protekshnsscop Scope) +374 Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ProtectedKey.Unprotect () Microsoft.Practices.EnterpriseLibrary .Security.Cryptography.SymmetricCryptographer.Decrypt (Byte [Encrypted Text] +66 Microsoft.Practices.EnterpriseLibrary . Security.Cryptography.SymmetricAlgorithmProvider.Decrypt (byte [] cipher) 187 Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric (string symmetricInstance, byte [] cipher) 114 Microsoft.Practices.EnterpriseLibrar Y.Security.Cryptography.Cryptographer. Cryptography.Cryptographer.DecryptSymmetric (string Simutrrik Instrens, string Sifrteksbes 64) +73 Kanpaninamkobjekts. Base Pementkget_pejmentnmberlastfur () +17 [Lcshyinvesnaksepshn: Property accessor 'payment' Kanpaninamkobjekts on Nmberlestfor object. The payment threw the following exception: 'The key is not valid for use in specific specified states.  

The code has not changed, this is the code on the second web server, so I'm assuming that something with the machinekiz I tried to remove the RSA key from the application data folder but no use Happened. I am not very familiar with cryptography in asp.net, so maybe there is no one missing it.

Anyone have any ideas? Thanks. Typically with the encryption process, there is some machine-based key that only generates the machine that is generated by it.

"itemprop =" text " at work, even if you are using any third



Comments