Bug reports Found a bug? Post it here please.
Version 4.x > Bug reports > validation of viewstate MAC failed - possibly not just a kentico issue? View modes: 
User avatar
Member
Member
henry - 10/5/2009 8:09:14 PM
   
validation of viewstate MAC failed - possibly not just a kentico issue?
Occasionally, users on our Kentico built website get the following error:

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

The page itself just has a simple form which collects some user details, and on submit stores them into a database - this error happens very randomly. I also checked the value of <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="..."/> and it is consistent between IISresets and apppoolrecycles

Anyone know why users are getting this error?

Done quite a bit of googling (eg http://www.appetere.com/Blogs/SteveM/July_2009/Working_with_ViewState.aspx) but if anyone has any ideas would be much appreciated :)

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 10/9/2009 11:40:23 AM
   
RE:validation of viewstate MAC failed - possibly not just a kentico issue?
Hi Henry,

Could you please try to follow suggestions described in 'Timeout with error msg: Validation of viewstate MAC failed...' article?

Best Regards,

Martin Dobsicek