Solved

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. AutoGenera

Posted on 2008-10-08
4
2,395 Views
Last Modified: 2012-08-13
Hi,

I am getting the following  error message...I have visual studio 2008 with sp1 and  .net framework 3.5,3.0 and 2.0 also....

I tried to to modify web.config by using
 ViewStateEncryptionMode="Never"
    EnableViewStateMac="false" EnableEventValidation="false" ...

I also add Machine key  tag in web.config still problem is there ........

I have one user control from which a pop up window get opened and when I hit any button or after postback i am getting this errror please help me.............

I am in trouble..........

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.
0
Comment
Question by:ShaileshShinde
[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
4 Comments
 
LVL 27

Expert Comment

by:Sammy
ID: 22670488
Try using the PostBackUrl property instead of the normal postback
this should be done on the user control
Example myButton.PostBackUrl = "mypage.aspx";

post the code the control is using to open the page



0
 
LVL 1

Author Comment

by:ShaileshShinde
ID: 22684600
what u r talking about ? i am getting this error

I am getting the following  error message...I have visual studio 2008 with sp1 and  .net framework 3.5,3.0 and 2.0 also....

I tried to to modify web.config by using
 ViewStateEncryptionMode="Never"
    EnableViewStateMac="false" EnableEventValidation="false" ...

I also add Machine key  tag in web.config still problem is there ........

I have one user control from which a pop up window get opened and when I hit any button or after postback i am getting this errror please help me.............

I am in trouble..........

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.
0
 
LVL 1

Accepted Solution

by:
AugustReign earned 500 total points
ID: 22754721
Try adding enableViewStateMac="false" to the <pages> tag in your web.config as well.  For example:
<pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" enableViewStateMac="false">

Open in new window

0
 
LVL 1

Expert Comment

by:code4food
ID: 22854171
AugustReign,
 That did the trick for me! Good going! I am not the author of the original question, but I was looing for an answer to that very same problem and it worked perfectly. Thanks a million!
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 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