Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Validation of viewstate MAC failed

Posted on 2009-07-01
3
Medium Priority
?
518 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
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
jinal earned 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
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 …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

963 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