Server Error in '/' Application.

Bad Data.

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: Bad Data.


Source Error:


Line 30:                 //{
Line 31:                 lblIdEmpCript.Text = Page.RouteData.Values["Param"].ToString();
Line 32:                 Param = crypt.ActionDecrypt(Page.RouteData.Values["Param"].ToString());
Line 33:                 string[] dados = Param.Split('#');
Line 34:                 lblIdEmpresa.Text = dados[0].ToString();

Source File: d:\hosting\diapoio\areadoassociado.com.br\wwwroot\Cadastro.aspx.cs    Line: 32

Stack Trace:


[CryptographicException: Bad Data.
]
   System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) +38
   System.Security.Cryptography.Utils._DecryptData(SafeKeyHandle hKey, Byte[] data, Int32 ib, Int32 cb, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode PaddingMode, Boolean fDone) +0
   System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) +203
   System.Security.Cryptography.CryptoStream.FlushFinalBlock() +34
   DIAPOIO.MODEL.CryptUtil.Decrypt(String data, String key, String iv) in D:\GIT\S_AreaDoAssociado\MODEL\CryptUtil.cs:118
   DIAPOIO.MODEL.CryptUtil.ActionDecrypt(String data) in D:\GIT\S_AreaDoAssociado\MODEL\CryptUtil.cs:130
   Cadastrar.Page_Load(Object sender, EventArgs e) in d:\hosting\diapoio\areadoassociado.com.br\wwwroot\Cadastro.aspx.cs:32
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4676.0