Solved

Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted

Posted on 2009-05-11
2
295 Views
Last Modified: 2012-05-06
In My Application got an MAC validation Failles  Exception in some Situation.  Experts Can please tell me in which situation MAC validation Failles . and please tell me how to fix these MAC Problem

Even i have mention in the webconfiq file as " enable MAC validation = false "
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.
 
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.

Open in new window

0
Comment
Question by:Murthy1
2 Comments
 
LVL 39

Accepted Solution

by:
abel earned 500 total points
ID: 24353433
the mac validation can be set to on for each page. This error is not easily resolved, but you can try checking what the settings are on the page that raises this error.

In this thread, I summarized a couple of behaviors of ViewState and EnableViewStateMac (link will bring you to correct comment).

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

820 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