.NET Invalid viewstate Error

Hello Experts,

I keep getting this error which gets emailed to me from the Application_Error event:

System.Web.HttpException (0x80004005): The state information is invalid for this page and might be corrupted. ---> System.Web.UI.ViewStateException:
Invalid viewstate. Client IP: 60.169.78.52 Port: 47545

Any idea what might be causing this? I can't see any problem in the code on the page that's causing it, and it only happens now and then.

Thanks,
Steve
tablaFreakAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Paul MacDonaldDirector, Information SystemsCommented:
It's posslble someone's accessing a page after their session has run out or, if the viewstate is stored in the URL, it may be the viewstate in the URL doens't match the controls on the page.  Either of these might be especially true for an old, saved link.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tablaFreakAuthor Commented:
Thanks - do you know a good way of handling this error?
0
Paul MacDonaldDirector, Information SystemsCommented:
Not off the top of my head.  Do you know if this impacts what a visitor sees?

I suppose you could try to trap it - I don't know how you'd do that - and tell the visitor they may be using an old link.  That said, if visitors aren't complaining, I wouldn't worry about it.
0
tablaFreakAuthor Commented:
Yes, I don't actually know if the user sees any errors. I guess I'll just let it slide until there's some obvious negative consequence.

Thanks for your help!
0
tablaFreakAuthor Commented:
thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

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.