Answered by:
How to ignore runtime errors?

Question
-
User-1166428634 posted
Hi All,
I published my first web site. .... It is really good thing for me it is published World Wide Web. Sometime it give me below 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.
If I press F5 / Refresh then it goes well. But why it comes I don't understand... I also want to ask you if any kind of error
occours at runtime my users really displike to see the YELOW PAGE HAVING RED ERROR MESSAGE.
How to ignore these kind of errors / exceptions?
ThanksMonday, September 16, 2013 1:44 PM
Answers
-
User1992938117 posted
Validation of viewstate MAC failed.
To avoid this error see below post
http://issuesdotnet.blogspot.in/2010/10/validation-of-viewstate-mac-failed.html
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 16, 2013 1:50 PM
All replies
-
User1992938117 posted
Validation of viewstate MAC failed.
To avoid this error see below post
http://issuesdotnet.blogspot.in/2010/10/validation-of-viewstate-mac-failed.html
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 16, 2013 1:50 PM -
User-1166428634 posted
Hey Thanks.... I added these 2 attributes to page.......... I hope it will work
But thanks
Monday, September 16, 2013 2:19 PM -
User-1166428634 posted
Hey... it is is not working properly....
I have added attributes.. .. it worked for first some times but not now,... whta to do?
Tuesday, September 17, 2013 5:26 AM -
User1196771204 posted
hi there,
please see:
- http://forums.asp.net/t/1166634.aspx
- http://social.msdn.microsoft.com/Forums/en-US/cd9c5c03-4bf3-472b-814a-cd498b190c57/validation-of-viewstate-mac-failed-if-this-application-is-hosted-by-a-web-farm-or-cluster-ensure
Please mark this response as an "answer" if it helps you. Thanks heaps!Wednesday, September 18, 2013 3:42 AM