473,545 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error: Validation of viewstate MAC failed

Hello, all!

I started to develop my application with ASP.Net 2.0 and got the strange
behavior with pages, where user change any form control (i.e. checkbox,
button, etc.).

Ex.: when I clicked on button - page is not submit (postback);
if I create dropdown box with AutoPostBack = true, or change button property
to UseSubmitBehavi or = false,
I get error (only in IE!):

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.

But, all my pages perfectly worked in Firefox!!!

After researching, I founded solution for that: add to web.config file
section :
<pages enableViewState MAC = "false" />
BUT, I still get same error :(

Environment: Windows XP Pro with Framework 1.1/2.0 installed, Visual Studio
2005, local IIS.

Please, any help !!!!

Best regards,
Sergej Grickov.

Kaunas, Lithuania.
Jan 27 '06 #1
3 3393
http://support.microsoft.com/default...b;en-us;555353 see this link

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Sergej Grickov" <se****@ekb.l t> wrote in message
news:#5******** ******@TK2MSFTN GP15.phx.gbl...
Hello, all!

I started to develop my application with ASP.Net 2.0 and got the strange
behavior with pages, where user change any form control (i.e. checkbox,
button, etc.).

Ex.: when I clicked on button - page is not submit (postback);
if I create dropdown box with AutoPostBack = true, or change button property to UseSubmitBehavi or = false,
I get error (only in IE!):

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.

But, all my pages perfectly worked in Firefox!!!

After researching, I founded solution for that: add to web.config file
section :
<pages enableViewState MAC = "false" />
BUT, I still get same error :(

Environment: Windows XP Pro with Framework 1.1/2.0 installed, Visual Studio 2005, local IIS.

Please, any help !!!!

Best regards,
Sergej Grickov.

Kaunas, Lithuania.

Jan 27 '06 #2
Thank you, Alvin!
BTW, today I tried same project with same environment on another PC (my home
PC), and all works OK!
Seems, that my home PC's and local IIS (Windows XP SP2) has another
settings: another antivirus program,
another firewall settings and, maybe, something yet...

Thank you for help.
Best regards,
Sergej Grickov.

"Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc> wrote in message
news:uo******** ******@TK2MSFTN GP09.phx.gbl...
http://support.microsoft.com/default...b;en-us;555353 see this
link

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Sergej Grickov" <se****@ekb.l t> wrote in message
news:#5******** ******@TK2MSFTN GP15.phx.gbl...
Hello, all!

I started to develop my application with ASP.Net 2.0 and got the strange
behavior with pages, where user change any form control (i.e. checkbox,
button, etc.).

Ex.: when I clicked on button - page is not submit (postback);
if I create dropdown box with AutoPostBack = true, or change button

property
to UseSubmitBehavi or = false,
I get error (only in IE!):

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.

But, all my pages perfectly worked in Firefox!!!

After researching, I founded solution for that: add to web.config file
section :
<pages enableViewState MAC = "false" />
BUT, I still get same error :(

Environment: Windows XP Pro with Framework 1.1/2.0 installed, Visual

Studio
2005, local IIS.

Please, any help !!!!

Best regards,
Sergej Grickov.

Kaunas, Lithuania.


Jan 28 '06 #3
For the record, there can also be other causes for the error:

ASP.NET 2.0 and "Validation of ViewState Mac failed" exception
http://aspadvice.com/blogs/joteke/ar.../02/15011.aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"Sergej Grickov" <sg***@takas.lt > wrote in message
news:OJ******** ******@TK2MSFTN GP10.phx.gbl...
Thank you, Alvin!
BTW, today I tried same project with same environment on another PC (my
home PC), and all works OK!
Seems, that my home PC's and local IIS (Windows XP SP2) has another
settings: another antivirus program,
another firewall settings and, maybe, something yet...

Thank you for help.
Best regards,
Sergej Grickov.

"Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc> wrote in message
news:uo******** ******@TK2MSFTN GP09.phx.gbl...
http://support.microsoft.com/default...b;en-us;555353 see this
link

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Sergej Grickov" <se****@ekb.l t> wrote in message
news:#5******** ******@TK2MSFTN GP15.phx.gbl...
Hello, all!

I started to develop my application with ASP.Net 2.0 and got the strange
behavior with pages, where user change any form control (i.e. checkbox,
button, etc.).

Ex.: when I clicked on button - page is not submit (postback);
if I create dropdown box with AutoPostBack = true, or change button

property
to UseSubmitBehavi or = false,
I get error (only in IE!):

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.

But, all my pages perfectly worked in Firefox!!!

After researching, I founded solution for that: add to web.config file
section :
<pages enableViewState MAC = "false" />
BUT, I still get same error :(

Environment: Windows XP Pro with Framework 1.1/2.0 installed, Visual

Studio
2005, local IIS.

Please, any help !!!!

Best regards,
Sergej Grickov.

Kaunas, Lithuania.



Feb 4 '06 #4

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

Similar topics

1
15460
by: Michael | last post by:
Hi, Any one know the problem of the following error: Thanks, m Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically,
5
2307
by: No one | last post by:
Here is the view state error I am getting on a Windows 2003 box: ------------------------------------------------- Unable to validate data. 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. ...
1
1793
by: aaaaaa | last post by:
running a crystal (v10) reporting app on a virtual web server and getting the "Validation of viewstate MAC failed...." error when opening the crystal viewer. Any help please!!!
6
6240
by: scottrm | last post by:
Hi Users seem to be getting the following intermitent error whe they post a form. 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.
0
1950
by: Jeremy Chapman | last post by:
Riddle me this batman: An application has two aspx pages. Each has a button on it that does a response.redirect to the other page. I'm viewing the web app in a ocket pc running windows mobile 2003 2nd edition. If I use the back button, more often than not I will get an HttpException saying that the validation of viewstate MAC failed. If...
1
1793
by: Nathan Sokalski | last post by:
When I click after about 15 minutes on a page I wrote I recieve the following error: Server Error in '/' Application. -------------------------------------------------------------------------------- Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKeyconfiguration specifies...
4
1342
by: bsdanielm | last post by:
Hello folks, Can someone please help me with this??? Students at our university use our C# forms to request books/articles. These seem to have broken suddenly without my involvement (as webmaster). What the heck does this error mean??? Server Error in '/' Application.
1
2726
by: =?Utf-8?B?VmlqYXkgQ2hpa3Rl?= | last post by:
Hi Experts, With Session Affinity and Web Server Farm on ISA Server 2006 accessing 2 backend IIS servers, I’m getting 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...
1
1589
by: daveh551 | last post by:
Okay, I've googled this, and come up with several articles, but none of them seem to apply to my site. I have an eCommerce site with a product category tree in the left navigation bar. The tree is build using a TreeView control, and a SiteMap navigation data source. While I normally disable ViewState whenever possible, it HAS to be on for...
0
7478
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7668
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7923
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5984
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4960
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3466
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
722
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.