Why i get invalid view state exception

Expand / Collapse
 
     

Why i get invalid view state exception


Error message:

Exception Inner Exception:System.Web.HttpException: Invalid_Viewstate

Reason:

1. These error messages are most likely generated by requests coming from buggy robot (or search engine). 
2. It might also caused by incompatibility of the client's web browser.
3. If you click any button on .net form before loading complete, it is possible incomplete viewstate returns and cause above error.






User Comments

Click to subscribe to comments RSS feed...

No Member Photo
View Members Profile...,Posted By by Loren added 7/30/2009 1:10 AM


Your session expired, then your application pool recycled.  At that point, the app pool generates new keys for encrypting / decrypting viewstates.  However, you're still providing the "old" viewstate from before the session expiration and pool recycle.  Consequently, the framework thinks there's problems.<br /><br />You can solve this by setting your machineKey encryption / validation keys.
Helpful? YesYes NoNo

Add Your Comments


Name: *
Email Address:
Web Address:
Verification Code:
*
 

Details
Last Modified:12/24/2008 6:59 PM
Last Modified By: Mark
Type: Error Message
Article not rated yet.
Article has been viewed 1,308 times.
Options