Invalid ViewState Error

I'm running IIS 7.0, and .NET 3.5.  My pages will randomly receive the error below.  I have a ScriptManager running on a MasterPage, and and ScriptManagerProxy running on all the pages that use it.  The error will be received several times in a row throughout the day, then I may not see it for days.  The last couple of times it happened after making an update to the site, but that's not always the case.  The error happens on different browsers as well. Is there an easy way to trace it to where the error actually happened?
System.Web.HttpException: Invalid viewstate. at System.Web.UI.Page.DecryptStringWithIV(String s, IVType ivType) at System.Web.UI.Page.DecryptString(String s) at System.Web.Handlers.ScriptResourceHandler.DecryptParameter(NameValueCollection queryString) at System.Web.Handlers.ScriptResourceHandler.ProcessRequestInternal(HttpResponse response, NameValueCollection queryString, VirtualFileReader fileReader) at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context) at System.Web.Handlers.ScriptResourceHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Open in new window

Who is Participating?
didn't wrote EnableViewState = false

EnableViewStateMac - Gets or sets a value indicating whether ASP.NET should run a message authentication check (MAC) on the page's view state when the page is posted back from the client.

add enableviewstatmac="false" to pages element in the web config
dxproz232Author Commented:
Looking at that document EaswaranP... Eval we need the viewstate as we use it in the code...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.