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 9:  
Line 10:         Dim values As String()
Line 11:         values = Split(Crypto.Decrypt(HttpUtility.UrlDecode(context.Request.QueryString.ToString())), "|")
Line 12: 
Line 13:         Dim ID As String = values(1)

Source File: C:\inetpub\wwwroot\OutletmanagerV2\Broadcast\ViewBroadcastV2.ashx    Line: 11

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) +14474556
   System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) +131
   System.Convert.FromBase64String(String s) +50
   Crypto.Decrypt(String value) in C:\TFS\HouseRep\HouseRep\Crypto.vb:55
   ViewBroadcastV2.ProcessRequest(HttpContext context) in C:\inetpub\wwwroot\OutletmanagerV2\Broadcast\ViewBroadcastV2.ashx:11
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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