This is a migrated thread and some comments may be shown as answers.

Viewstate - The state information is invalid

3 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 2
Phil asked on 12 Jul 2011, 07:25 PM
Hi All:

Like others, I am experiencing the following error in my orders selection grid. 
The state information is invalid for this page and might be corrupted.
   at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError)
   at System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState)
   at System.Web.UI.HiddenFieldPageStatePersister.Load()
   at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
   at System.Web.UI.Page.LoadAllState()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Inner Exception Trace:   Invalid viewstate.
    Client IP: 127.0.0.1
    Port:
    Referer: http://localhost:52506/WebUI/OrderSelection.aspx
    Path: /WebUI/OrderSelection.aspx
    User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC EA 2; MALC)
    ViewState: /wEPDwULL...
 
Inner Exception Trace:   Invalid length for a Base-64 char array.
   at System.Convert.FromBase64String(String s)
   at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
   at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState)
   at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState)
   at System.Web.UI.HiddenFieldPageStatePersister.Load()

The grid allows filtering and contains 2 RadDatePickers.  If I change a value in the picker and press enter, I get the above error.  If I tab out of the field then no error.

I have tried EnableLinqExpressions="False", but no luck.

Phil

3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 15 Jul 2011, 03:14 PM
Hello Phil,

Can you share the grid declaration and the code for binding the grid?
Any additional information on your scenario and setup might help us find the cause of the issue.

Best wishes,
Iana
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Phil
Top achievements
Rank 2
answered on 16 Jul 2011, 07:17 PM
Hi:
This morning I made a reference example and have made some headway on the issue.  It is the weekend, so I will have to wait till Monday to see it solves the problem.
Phil
0
Phil
Top achievements
Rank 2
answered on 06 Aug 2011, 12:35 AM
Hi:
I think placing the grid in a RadAjaxPanel solves the problem.  In my production application, I have things in the master page that I need, so a RadAjaxPanel will cause problems.
Phil
Tags
Grid
Asked by
Phil
Top achievements
Rank 2
Answers by
Iana Tsolova
Telerik team
Phil
Top achievements
Rank 2
Share this question
or