0

CryptographicException

has anyone ever encountered this error?

 

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:

Line 102:%>
Line 103:<body style="background-color: #555;">
Line 104:	<input id="auth-key" type="hidden" name="auth-key" value="<%= Encryption.GetClientRSAKey() %>" />
Line 105:	<div id="x-desktop">
Line 106:<% if( ApplicationMode.Current == ModuleType.METTeamCustomerPortal ) { %>


Source File: c:\inetpub\wwwroot\METTEAM\Views\Authentication\LogOn.aspx    Line: 104

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) +4700552
   System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) +296
   System.Security.Cryptography.CryptoStream.FlushFinalBlock() +34
   System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing) +95
   System.IO.Stream.Close() +21
   System.IO.Stream.Dispose() +12
   orx.Helpers.Encryption.Decrypt(Byte[] cipherTextBytes, String passPhrase, String saltValue, String hashAlgorithm, Int32 passwordIterations, String initVector, Int32 keySize) +459
   orx.Helpers.Encryption.Decrypt(String cipherText, String passPhrase, String saltValue) +42
   orx.Helpers.Encryption.GetCryptoProvider() +400
   orx.Helpers.Encryption.GetClientRSAKey() +23
   ASP.views_authentication_logon_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\METTEAM\Views\Authentication\LogOn.aspx:104
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1303

 


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

2 comments

Date Votes
0
Avatar
Gilberto Escandon

I have the same issue. Did you manage to fix it?

Please sign in to leave a comment.