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
Hi,
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.
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.
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 Louis,
I've created a support ticket in your behalf. The support case number is CAS-48891-S19JW3. Please isolate this issue and send it to me over the support case and I will get back to you soon.
Apologies for the inconvenience.
Thanks.
Thanks, I'll head over there and keep everyone posted.
Hi, I'm also experiencing this issue. Has developer support made any headway with reproducing and/or identifying the problem.
I have a very simple scenario where i'm dynamically loading about 6 or 7 menu items into the webdatamenu control. On first load it displays as expected but upon any postback it fails with the above LoadViewState_Exception.
Any help would be appreciated.
Hello pcgsystems,
The issue has been identified and already resolved. Fix will be released in the next service release. Release schedule you can refer here.
Hope this helps.