Has anyone seen this error?
LoadViewState_Exception
Here's the stack trace:
at Infragistics.Web.UI.Framework.ObjectCollection.LoadViewStateItems(ArrayList itemList) at Infragistics.Web.UI.Framework.ObjectCollection.LoadViewState(Object savedState) at Infragistics.Web.UI.Framework.ObjectCollection.System.Web.UI.IStateManager.LoadViewState(Object savedState) at Infragistics.Web.UI.NavigationControls.NavItem.System.Web.UI.IStateManager.LoadViewState(Object state) at Infragistics.Web.UI.Framework.ObjectCollection.LoadViewStateItems(ArrayList itemList) at Infragistics.Web.UI.Framework.ObjectCollection.LoadViewState(Object savedState) at Infragistics.Web.UI.Framework.ObjectCollection.System.Web.UI.IStateManager.LoadViewState(Object savedState) at Infragistics.Web.UI.NavigationControls.NavControl.LoadViewState(Object savedState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByID(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
My menu is part of a user control and the menu is added dynamically and every page that does any kind of post back this happens. I have set EnableViewState to "false" but then the menu disappears.
I have also tried moving the code from Page_Load to Page_Init. No help.
I have also tried adding [ViewStateModeById] to my control class. Also no help.
As you can see I am getting desperate.
Any suggestions?
Thanks!
Louis
I am very nervous about posting my entire application on the forums...
is there another way I can send you my entire application?
Otherwise I will have to try and build a sample, but like you mentioned these bugs can be tricky...if the code wasn't so complex I'm sure I wouldn't be seeing this either.
Hi,
this error will happen only if there is a problem with the serialization of the view state. Since view state is working with data, I suppose there is some subtle bug, because of a certain data that you have. These bugs are very hard to track, and I'll need a full example that I can compile, run and debug. I remember there was one such bug that I fixed for 10.2 that could be the same issue that you see in 10.1, but I can't be sure without a full example.
Thanks,
Lubomir
Version Info:
Infragistics35.Web.v10.1, Version=10.1.20101.1011
Although my production application fails on every postback on every page where the menu is shown, I have been unable to reproduce it in a sample application.
Unfortunately I cannot supply the entire application, but I have attached the Header control, which contains the menu and a sample page that utilizes the Header.
Thanks for the assistance.
can you upload a sample application where this exception is reproducing consistently on postback. Also specify the NetAdvantage version or service release you are using.