0
Answer

Error: Invalid length for a Base-64 char array or string

Photo of Rinki

Rinki

2d
106
1

I am experiencing the below exception in the production environment but when I test it from my local it is working fine. What could be the possible reason for this? 

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

Source:mscorlib TargetSite:Int32 FromBase64_Decode(Char*, Int32, Byte*, Int32) Stack 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()