473,321 Members | 1,667 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,321 software developers and data experts.

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 UseSubmitBehavior = 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 enableViewStateMAC = "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 3387
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.lt> wrote in message
news:#5**************@TK2MSFTNGP15.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 UseSubmitBehavior = 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 enableViewStateMAC = "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**************@TK2MSFTNGP09.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.lt> wrote in message
news:#5**************@TK2MSFTNGP15.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 UseSubmitBehavior = 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 enableViewStateMAC = "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**************@TK2MSFTNGP10.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**************@TK2MSFTNGP09.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.lt> wrote in message
news:#5**************@TK2MSFTNGP15.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 UseSubmitBehavior = 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 enableViewStateMAC = "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
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...
5
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...
1
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
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...
0
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...
1
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....
4
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...
1
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...
1
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.