473,508 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Validation of ViewState MAC failed

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 the TreeView to work, or it
doesn't change state when the user expands and collapses nodes. There
are a fairly large number of nodes (around 60 fully expanded), so the
ViewState is fairly massive (it takes up an entire Notepad screen plus
a little when I do a View Source on the displayed page.)

Here's the problem: When I run the site in IE (but not in FireFox),
and click on one of the categories to navigate to it (though not just
to expand or collapse it), It throws a "Validation of ViewState MAC
failed." Needless to say, I am not running on a Server Farm, and I am
giving plenty of time for the page to fully load, and I am not using
DataKeyNames (some of the common threads I have found running through
the articles I have found.)

Any clues? FWIW, it's running the 2.0 framework under VS 2005,
running IE 7.0. It works fine with Firefox. It fails under the
debugger, and, much to my chagrin, on the production site as well.

Thanks for your help.
Aug 20 '08 #1
1 1583
On Aug 19, 10:45*pm, daveh551 <gee...@gmail.comwrote:
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 the TreeView to work, or it
doesn't change state when the user expands and collapses nodes. *There
are a fairly large number of nodes (around 60 fully expanded), so the
ViewState is fairly massive (it takes up an entire Notepad screen plus
a little when I do a View Source on the displayed page.)

Here's the problem: When I run the site in IE (but not in FireFox),
and click on one of the categories to navigate to it (though not just
to expand or collapse it), It throws a "Validation of ViewState MAC
failed." *Needless to say, I am not running on a Server Farm, and I am
giving plenty of time for the page to fully load, and I am not using
DataKeyNames (some of the common threads I have found running through
the articles I have found.)

Any clues? *FWIW, it's running the 2.0 framework under VS 2005,
running IE 7.0. *It works fine with Firefox. *It fails under the
debugger, and, much to my chagrin, on the production site as well.

Thanks for your help.
Never mind, I solved it. I had copied in some HTML from another
source without really understanding it, and had included a <form>
element nested within the <formcreated by ASP.NET. Apparentlyly, IE
gets more bent out of shape about that than Firefox does. Changing
the nested <formto a <divmade the problem go away.
Aug 20 '08 #2

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

Similar topics

3
3392
by: Sergej Grickov | last post by:
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...
1
11738
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....
2
1559
by: Jeremy Chapman | last post by:
This is odd behavior. In my aspnet 2.0 app (basic app, nothing out of the ordinary here), if I am using my iPAQ handheld device and I hit the refresh button on my page, I get an error "Validation...
6
2923
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
14040
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...
6
11209
by: Gibble | last post by:
We have been receiving 100s of this error: ---------- Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKeyconfiguration specifies...
5
3317
by: SpaceMarine | last post by:
hello, when my page attempts a Telerik RadGrid row insert (AJAX enabled) my page throws this exception: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or...
3
680
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
1223
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
7225
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
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7326
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,...
0
7383
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...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
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...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
418
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...

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.