Server Error in '/' Application.

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.

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.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.

Source Error:


Line 178:                return plainText;
Line 179:            }
Line 180:            catch { throw; }
Line 181:        }
Line 182:

Source File: D:\Project\Branch-SamlFrameUpgd\SourceCode\eBoard\eBoard.Business\Helper\AESEncryption.cs    Line: 180

Stack Trace:


[FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. ]
   System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength) +627
   System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) +140
   System.Convert.FromBase64String(String s) +45
   eBoard.Business.Helper.AESEncryption.Decrypt(String CipherText, String strSalt) in D:\Project\Branch-SamlFrameUpgd\SourceCode\eBoard\eBoard.Business\Helper\AESEncryption.cs:180
   eBoard.ViewPolicyNew.Page_PreInit(Object sender, EventArgs e) in D:\Project\Branch-SamlFrameUpgd\SourceCode\eBoard\eBoard\Policy\ViewPolicy.aspx.vb:53
   System.Web.UI.Page.OnPreInit(EventArgs e) +138
   System.Web.UI.Page.PerformPreInit() +46
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1178


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