Re: Invalid ViewState Error after Multiple PostBacks

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Justin,

See below...

Exception Details: System.Web.HttpException: The viewstate is invalid for
this page and might be corrupted.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +139
System.Web.UI.Page.LoadPageViewState() +17
System.Web.UI.Page.ProcessRequestMain() +423




"S. Justin Gengo" wrote:

> Jamie,
>
> What's the exact error being returned?
>
> --
> Sincerely,
>
> S. Justin Gengo, MCP
> Web Developer / Programmer
>
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzsche
> "Jamie" <Jamie@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:511F3B82-B6AB-466E-AB47-41386279E153@xxxxxxxxxxxxxxxx
> >I am receiving an Invalid ViewState error after posting back to the same
> >page
> > twice. Consistently the error occurs after the second postback and not
> > after
> > the first.
> >
> > I have looked into creating a static machinekey in the machine.config and
> > that did not help. I believe that issue only occurred when there was an
> > inconsistent viewstate error. The error I am faced with consistently
> > occurs.
> >
> > Are there any known problems with the ViewState when posting back to the
> > same page multiple times? Any help would be much appreciated.
>
>
>
.


Quantcast