Ms_ Dev

Ms_ Dev

  • NA
  • 236
  • 92.5k

Getting error as Invalid length for base 64 array

May 5 2017 1:27 AM
Hi,
 
Below is the stack trace:
  1. message: 'An unhandled exception occurred.'  
  2. -------------------------- Stack Trace -------------------------------  
  3. System.FormatException: Invalid length for a Base-64 char array.  
  4.    at System.Convert.FromBase64String(String s)  
  5.    at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)  
  6.    at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState)  
  7.    at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState)  
  8.    at System.Web.UI.HiddenFieldPageStatePersister.Load()  
  9. -------------------------End Stack Trace -----------------------------  
I dont know what is causing this. I am using viewstate to have almost 17k records and later using this in a grid display function.
 
Help to resolve. 
 

Answers (4)