Solved

Validation of viewstate MAC failed

Posted on 2009-07-01
3
501 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 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now