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

Validation of viewstate MAC failed

We have a web application running on a server farm that is behind a CISCO
CSS switch. This switch has been configured to support sticky sessions so I
am at a loss as to what might be causing this error.

Does anyone have any ideas?
Nov 19 '05 #1
4 5261
Hi Ray,

Most likely it's not working 100% and not completely sticky <g>...

The best thing to do for ViewState at least is to set the machinekey in
machine.config to the same value on each machine so all machines use the
same viewstate encoding which prevents corruption should the session end up
on another box.

The non-sticky issue may have to do with varying URL formatting schemes (IP
vs. domain, different spelling ofthe protocol or http/https traversal>

+++ Rick ---

--

Rick Strahl
West Wind Technologies
www.west-wind.com
www.west-wind.com/weblog


"Ray Stevens" <nf*@nospam.com> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
We have a web application running on a server farm that is behind a CISCO
CSS switch. This switch has been configured to support sticky sessions so
I am at a loss as to what might be causing this error.

Does anyone have any ideas?

Nov 19 '05 #2
> The best thing to do for ViewState at least is to set the machinekey
in machine.config to the same value on each machine so all machines
use the same viewstate encoding which prevents corruption should the
session end up on another box.


This allows you to get rid of sticky sessions too.

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #3
Not quite... we are storing state on the server.

But it does sound like the CISCO CSS sticky sessions do have an occasional
hic-up, which is not good. This may force us to use SQL Server or ASP.NET
State Server service.

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:10***********************@msnews.microsoft.co m...
The best thing to do for ViewState at least is to set the machinekey
in machine.config to the same value on each machine so all machines
use the same viewstate encoding which prevents corruption should the
session end up on another box.


This allows you to get rid of sticky sessions too.

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #4
>> This allows you to get rid of sticky sessions too.

Not quite... we are storing state on the server.

Oh, bummer :(

Regardless, I will continue my plight to rid the world of session state :)

-Brock
DevelopMentor
http://staff.develop.com/ballen


Nov 19 '05 #5

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...
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: 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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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:
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,...
0
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...
0
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...

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.