2010-09-15 10 views
0

Je reçois l'erreur suivante dans notre environnement QA mais uniquement via le proxy inverse IIS7. Si je frappe directement le serveur d'application, cela fonctionne très bien. Dans notre environnement DEV, cela fonctionne très bien via le proxy ou directement."Le remplissage n'est pas valide et ne peut pas être retiré." erreur avec une torsion

Je ne sais pas vraiment où aller avec ceci, des idées?

Server Error in '/' Application. 
Padding is invalid and cannot be removed. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. 

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace: 

[CryptographicException: Padding is invalid and cannot be removed.] 
    System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) +2910 
    System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) +286 
    System.Security.Cryptography.CryptoStream.FlushFinalBlock() +51 
    System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean useValidationSymAlgo) +318 
    System.Web.UI.Page.DecryptStringWithIV(String s, IVType ivType) +115 
    System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +140 
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599 
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171 


Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4927 

Répondre

1

Si cela est arrive à la page avec poste à l'époque sans doute votre proxy est convertting l'URL dans les caractères minuscules et casser le code.

J'ai une plus grande réponse ici avec une astuce pour connecter l'erreur et voir ce qui est vraiment obtenir sur votre page:

CryptographicException: Padding is invalid and cannot be removed and Validation of viewstate MAC failed

+0

Merci, l'enregistrement m'a obtenu les informations dont je avais besoin. – MyItchyChin