?
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
Medium Priority
?
2,399 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 Ageil
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 1500 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

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

801 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