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 53:             if (!String.IsNullOrEmpty(tag))
Line 54:             {
Line 55:                 tag = Encoding.UTF8.GetString(Convert.FromBase64String(tag));
Line 56:                 string [] ti = tag.Split('|');
Line 57:                 if (ti.Length == 2)

Source File: d:\hst\informatica-vsem-on_ed60bed2\http\search.aspx    Line: 55

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) +12849736
   System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) +133
   System.Convert.FromBase64String(String s) +43
   ASP.search_aspx.Page_Load(Object sender, EventArgs e) in d:\hst\informatica-vsem-on_ed60bed2\http\search.aspx:55
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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