Solved

Validation of viewstate MAC failed

Posted on 2009-07-01
3
509 Views
Last Modified: 2012-05-07
I have hosted my application on shared server. And its working fine. But when i leave the page idle for about 20 minutes or so and then click any button then i got this 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. "

I didnt used any viewstate in the page. And i also had only one FORM tag in the page.
I have tried to put the "EVENTVALIDATION" to FALSE but it didnt work either.
0
Comment
Question by:badalpatel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
jinal earned 500 total points
ID: 24755063
Hello ,

In page  directive of aspx page add EnableViewStateMac="false"

You get detail about viewstatemac at following link.

http://msdn.microsoft.com/en-us/library/system.web.ui.page.enableviewstatemac.aspx
0
 
LVL 6

Author Comment

by:badalpatel
ID: 24760590
Hi, it didnt work either..When i leave my page idle for about 20-30 mins or so then the error appear again...
0
 
LVL 6

Author Closing Comment

by:badalpatel
ID: 31598726
Later on it did the trick
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question