Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
LoadViewState_Exception
posted

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