Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 354
  • Last Modified:

.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
0
tablaFreak
Asked:
tablaFreak
  • 3
  • 2
1 Solution
 
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
 
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

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now