Exception: Padding is invalid and cannot be removed.

Discussion in 'ASP.NET 2.0' started by wibble, Aug 14, 2006.

  1. Has anybody else come across this exception?

    The full stack dump is below but my web app doesn't use any encryption. I've seen a few posts about this on other newsgroups butno fixes have worked for me so far...




    at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)


    at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)


    at System.Security.Cryptography.CryptoStream.FlushFinalBlock()


    at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo)


    at System.Web.UI.Page.DecryptString(String s)


    at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)


    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()


    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     

Share This Page