Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
hi all,
 
am open the one from and click on button after 10mints automatically i got the this type error.
 
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster
 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.Web.HttpException: 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.
 
how to solve above error in my website. please help me.
 
thank & regards
Santhosh kumar
Posted 16-Jan-13 19:17pm
Edited 16-Jan-13 19:21pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Short answer:
If you don't need this kind of checking -
in Page directive put EnableViewStateMac = "false"
 
Full answer:
Most likely your site is hosted on Webfarm environment , initial request is served by one server, but sometimes,saying, after timeout - by another.
 
More details on article below.
 
http://msdn.microsoft.com/en-us/library/ms998288.aspx[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 254
1 Sergey Alexandrovich Kryukov 182
2 Hard_Rockz 128
3 Richard MacCutchan 125
4 Maciej Los 104
0 OriginalGriff 5,374
1 Sergey Alexandrovich Kryukov 4,713
2 Peter Leow 2,944
3 DamithSL 2,465
4 Maciej Los 2,270


Advertise | Privacy | Mobile
Web01 | 2.8.140718.1 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid