Good Morning. I inherited a program when I took an IT position, and I am not very SQL/VB savvy.
Also, I have researched this error online, but in trying their solution, I still get the error.
This is the error I receive:
Message: Invalid length for a Base-64 char array or string. Source: mscorlib Method: FromBase64_Decode Line: 0 Column: 0 Case:
Case ID: 0 Active Tab: 0 Last Active Tab: 0 Current List ID: 0Stack Trace: at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength) at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) at System.Convert.FromBase64String(String s)
at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString, Purpose purpose) at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter2 formatter, String serializedState, Purpose purpose) at System.Web.UI.HiddenFieldPageStatePersister.Load()
I believe it comes from the UrlDecode of this sample code in VB Studio 2012:
Case "CaseSetup"
hlCaseSetupLink.Text = getShortFileNameFromPath(sPath)
hlCaseSetupLink.NavigateUrl = "File:///" & sPath
hlCaseSetupLink.NavigateUrl = HttpUtility.UrlDecode(hlCaseSetupLink.NavigateUrl)
updateCaseSetup()
Just before the last line updateCaseSetup(), I inserted the following code to compensate for any spaces the UrlDecode created with a plus sign to maintain the Base-64 compatibility:
hlCaseSetupLink.NavigateUrl = Replace(hlCaseSetupLink.NavigateUrl, " ", "+")
Also, to put this in reference, this code is for the 8 tabs created in the custom program I use and is repeated 8 times but with different tab names in the code.
Does this make sense to anyone?
Thank you all for your time. It is greatly appreciated.