Server Error in '/' Application.

Invalid length for a Base-64 char array or string.

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: Invalid length for a Base-64 char array or string.

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: Invalid length for a Base-64 char array or string.]
   System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength) +530
   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.OutLook_Calendar_Calendar.Initialize() in D:\Project\Branch-SamlFrameUpgd\SourceCode\eBoard\eBoard\Calendar\Calendar.aspx.vb:393
   eBoard.OutLook_Calendar_Calendar.Page_PreInit(Object sender, EventArgs e) in D:\Project\Branch-SamlFrameUpgd\SourceCode\eBoard\eBoard\Calendar\Calendar.aspx.vb:33
   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