VictorJuri
asked on
ASP.NET Viewstate exception error.
Hello,
I am getting this error and have no idea how to tackle it or how to trace it down any help would be valuble. It happens on many pages on my site. I think it may be linked to the load event on an ascx file but I am not sure. I use Session variables and cookies to store user information like refering url, and a few of parameters that are passed to the page.
Any other info I can provide please let me know.
<------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ->
Last Exception
Error Message: The state information is invalid for this page and might be corrupted.
Source: System.Web
Trace Stack: at System.Web.UI.ViewStateExc eption.Thr owError(Ex ception inner, String persistedState, String errorPageMessage, Boolean macValidationError)
at System.Web.UI.HiddenFieldP ageStatePe rsister.Lo ad()
at System.Web.UI.Page.LoadPag eStateFrom Persistenc eMedium()
at System.Web.UI.Page.LoadAll State()
at System.Web.UI.Page.Process RequestMai n(Boolean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt)
at System.Web.UI.Page.Process Request(Bo olean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt)
at System.Web.UI.Page.Process Request()
at System.Web.UI.Page.Process RequestWit hNoAssert( HttpContex t context)
at System.Web.UI.Page.Process Request(Ht tpContext context)
at ASP.services_development_a utomation_ aspx.Proce ssRequest( HttpContex t context)
at System.Web.HttpApplication .CallHandl erExecutio nStep.Syst em.Web.Htt pApplicati on.IExecut ionStep.Ex ecute()
at System.Web.HttpApplication .ExecuteSt ep(IExecut ionStep step, Boolean& completedSynchronously)
Base Exception
Error Message: Invalid character in a Base-64 string.
Source: mscorlib
Trace Stack: at System.Convert.FromBase64S tring(Stri ng s)
at System.Web.UI.ObjectStateF ormatter.D eserialize (String inputString)
at System.Web.UI.ObjectStateF ormatter.S ystem.Web. UI.IStateF ormatter.D eserialize (String serializedState)
at System.Web.UI.Util.Deseria lizeWithAs sert(IStat eFormatter formatter, String serializedState)
at System.Web.UI.HiddenFieldP ageStatePe rsister.Lo ad()
<------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ->
I also get this message but much less often.
<------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ->
Last Exception
Error Message: The client disconnected.
Source: System.Web
Trace Stack: at System.Web.UI.ViewStateExc eption.Thr owError(Ex ception inner, String persistedState, String errorPageMessage, Boolean macValidationError)
at System.Web.UI.HiddenFieldP ageStatePe rsister.Lo ad()
at System.Web.UI.Page.LoadPag eStateFrom Persistenc eMedium()
at System.Web.UI.Page.LoadAll State()
at System.Web.UI.Page.Process RequestMai n(Boolean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt)
at System.Web.UI.Page.Process Request(Bo olean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt)
at System.Web.UI.Page.Process Request()
at System.Web.UI.Page.Process RequestWit hNoAssert( HttpContex t context)
at System.Web.UI.Page.Process Request(Ht tpContext context)
at ASP.services_data_services _append_as px.Process Request(Ht tpContext context)
at System.Web.HttpApplication .CallHandl erExecutio nStep.Syst em.Web.Htt pApplicati on.IExecut ionStep.Ex ecute()
at System.Web.HttpApplication .ExecuteSt ep(IExecut ionStep step, Boolean& completedSynchronously)
Base Exception
Error Message: Invalid character in a Base-64 string.
Source: mscorlib
Trace Stack: at System.Convert.FromBase64S tring(Stri ng s)
at System.Web.UI.ObjectStateF ormatter.D eserialize (String inputString)
at System.Web.UI.ObjectStateF ormatter.S ystem.Web. UI.IStateF ormatter.D eserialize (String serializedState)
at System.Web.UI.Util.Deseria lizeWithAs sert(IStat eFormatter formatter, String serializedState)
at System.Web.UI.HiddenFieldP ageStatePe rsister.Lo ad()
<------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ->
I am getting this error and have no idea how to tackle it or how to trace it down any help would be valuble. It happens on many pages on my site. I think it may be linked to the load event on an ascx file but I am not sure. I use Session variables and cookies to store user information like refering url, and a few of parameters that are passed to the page.
Any other info I can provide please let me know.
<-------------------------
Last Exception
Error Message: The state information is invalid for this page and might be corrupted.
Source: System.Web
Trace Stack: at System.Web.UI.ViewStateExc
at System.Web.UI.HiddenFieldP
at System.Web.UI.Page.LoadPag
at System.Web.UI.Page.LoadAll
at System.Web.UI.Page.Process
at System.Web.UI.Page.Process
at System.Web.UI.Page.Process
at System.Web.UI.Page.Process
at System.Web.UI.Page.Process
at ASP.services_development_a
at System.Web.HttpApplication
at System.Web.HttpApplication
Base Exception
Error Message: Invalid character in a Base-64 string.
Source: mscorlib
Trace Stack: at System.Convert.FromBase64S
at System.Web.UI.ObjectStateF
at System.Web.UI.ObjectStateF
at System.Web.UI.Util.Deseria
at System.Web.UI.HiddenFieldP
<-------------------------
I also get this message but much less often.
<-------------------------
Last Exception
Error Message: The client disconnected.
Source: System.Web
Trace Stack: at System.Web.UI.ViewStateExc
at System.Web.UI.HiddenFieldP
at System.Web.UI.Page.LoadPag
at System.Web.UI.Page.LoadAll
at System.Web.UI.Page.Process
at System.Web.UI.Page.Process
at System.Web.UI.Page.Process
at System.Web.UI.Page.Process
at System.Web.UI.Page.Process
at ASP.services_data_services
at System.Web.HttpApplication
at System.Web.HttpApplication
Base Exception
Error Message: Invalid character in a Base-64 string.
Source: mscorlib
Trace Stack: at System.Convert.FromBase64S
at System.Web.UI.ObjectStateF
at System.Web.UI.ObjectStateF
at System.Web.UI.Util.Deseria
at System.Web.UI.HiddenFieldP
<-------------------------
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.