473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Validation of veiwstate MAC failed

Hi,

We have upgraded our application from asp1.1 to ASP 2.0. We get the
"Validation of veiwstate MAC failed" error when we submit the form again
after waiting for 10 to 20 mins. This looks to be a timing issue but how do
I fix it?

ERROR:
"Validation of viewstate MAC failed. If this application is hosted by a Web
Farm or cluster, ensure that <machineKeyconfiguration specifies the same
validationKey and validation algorithm. AutoGenerate cannot be used in a
cluster."

I have tried all I could think of but could not get it to work. Please can
some one provide me a fix for this.

Thanks
Rahul
Oct 11 '06 #1
2 1338
Check the workarounds of this bug report here :
http://connect.microsoft.com/VisualS...dbackID=101988


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Rahul" <re************@hotmail.comwrote in message news:eL**************@TK2MSFTNGP02.phx.gbl...
Hi,

We have upgraded our application from asp1.1 to ASP 2.0. We get the "Validation of veiwstate MAC
failed" error when we submit the form again after waiting for 10 to 20 mins. This looks to be a
timing issue but how do I fix it?

ERROR:
"Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster,
ensure that <machineKeyconfiguration specifies the same validationKey and validation algorithm.
AutoGenerate cannot be used in a cluster."

I have tried all I could think of but could not get it to work. Please can some one provide me a
fix for this.

Thanks
Rahul

Oct 11 '06 #2
Hi Juan,

I have tried the different options and it does not help. I have even put the
following in the web.config and still have the issue.

<pages validateRequest="false" enableEventValidation="false"
viewStateEncryptionMode ="Never" />

I am not sure what else to do. I have just one form element on the page.

Also it does not happen because someone submitted the page too soon but
rather beacuse someone waited too long before the submitted the page.

Thanks
Rahul
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2***************@TK2MSFTNGP03.phx.gbl...
Check the workarounds of this bug report here :
http://connect.microsoft.com/VisualS...dbackID=101988


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Rahul" <re************@hotmail.comwrote in message
news:eL**************@TK2MSFTNGP02.phx.gbl...
>Hi,

We have upgraded our application from asp1.1 to ASP 2.0. We get the
"Validation of veiwstate MAC failed" error when we submit the form again
after waiting for 10 to 20 mins. This looks to be a timing issue but how
do I fix it?

ERROR:
"Validation of viewstate MAC failed. If this application is hosted by a
Web Farm or cluster, ensure that <machineKeyconfiguration specifies the
same validationKey and validation algorithm. AutoGenerate cannot be used
in a cluster."

I have tried all I could think of but could not get it to work. Please
can some one provide me a fix for this.

Thanks
Rahul


Oct 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: dries | last post by:
A friend of mine has a problem with his credit card validation routine and it is probably a simple thing to solve but I cannot find it. It has to do with the expiry dates. What happens is that as...
2
by: Leon Shaw | last post by:
Why Password Textbox do not Save VeiwState doing Refreshing of page and how do I accomplish this?
0
by: Boltar | last post by:
Hello, I am trying to use a CustomValidator control to perform client-side validation via a server callback. I have an example below that validates if a textbox contains an odd number. I...
1
by: Dhruba Bandopadhyay | last post by:
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....
6
by: sck10 | last post by:
Hello, I have applications that produce the following error when they have been open to long without activity. Is there any way to force a re-load of the page or go to another page if the page...
5
by: russell.lane | last post by:
I'm getting the much-hated "validation of viewstate MAC failed" error. This is on an ASP.Net 2.0 app running in IIS with IE 6+ as the browser. The full error text is: Validation of viewstate...
3
by: Jason Wilson | last post by:
I was looking through the windows event long on a webserver hosting an application that I have in testing right now and I'm seeing this a couple dozen times a day. I'm not sure how to begin...
3
by: sck10 | last post by:
Hello, I have a web project (VS 2008 c#). I have a page that opens, but when I try to call an assembly (managed c++) on a submit event, I get the following error on the web server, but not on...
0
by: skozyk | last post by:
I kept getting the following error: "Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.