How solve (Validation of viewstate MAC failed)?
-
Hi, I keep getting the following error for different page in my website but not all the times so same page might work now but it will give this error after few minutes then again it will work. How can I solve it? This is the 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.
Technology News @ www.JassimRahma.com
-
Hi, I keep getting the following error for different page in my website but not all the times so same page might work now but it will give this error after few minutes then again it will work. How can I solve it? This is the 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.
Technology News @ www.JassimRahma.com
This error usually happens when your web app runs on a web farm but the machineKey isn't the same across all servers. Is this an issue in production? Check out this article on MSDN for more info. http://msdn.microsoft.com/en-us/library/ms998288.aspx[^]
-
Hi, I keep getting the following error for different page in my website but not all the times so same page might work now but it will give this error after few minutes then again it will work. How can I solve it? This is the 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.
Technology News @ www.JassimRahma.com
Try adding machinekey in webconfig. See following link for more details: Validation of viewstate MAC failed.[^] http://forums.asp.net/t/1847207.aspx/1[^] http://stackoverflow.com/questions/4693369/validation-of-viewstate-mac-failed-when-on-page-for-20-minutes[^]
Thanks & Regards, Vani Kulkarni