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 54:                 byteIn = Convert.FromBase64String(encryptedString)
Line 55:             Catch exp As System.FormatException
Line 56:                 Throw exp
Line 57:             End Try
Line 58:             'Convert from Base64 to binary

Source File: D:\InetPub\vhosts\cadigwe-7045.package\sophiaerp.com\wwwroot\App_Code\StringHelpers.vb    Line: 56

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. ]
   StringHelpers.Decrypt(String encryptedString) in D:\InetPub\vhosts\cadigwe-7045.package\sophiaerp.com\wwwroot\App_Code\StringHelpers.vb:56
   JobApply.Page_Load(Object sender, EventArgs e) in D:\InetPub\vhosts\cadigwe-7045.package\sophiaerp.com\wwwroot\NG\JobApply.aspx.vb:12
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2853


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