473,473 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Create 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 1581
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
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
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
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
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...
6
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
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
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
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
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
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,...
1
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
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.