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

Viewstate Error in Production Server (IIS 6.0/ASP.NET)

Hi all,
We are facing a strange problem in our production environment. We are
running an ASP.NET web application under IIS 6.0 with Windows Server
2003 64-bit (There are 2 CPUs). The users are frequently getting an
"Invalid_Viewstate" error. The error description is "Unable to validate
data".
The exception is "System.Web.HttpException: Authentication of viewstate
failed"

Can anyone help?

-- Nishant

Dec 20 '06 #1
1 2257
Thanks Peter,

I already implemented, what ever you have suggested. I found another
problem in machine.config file ViewStateMac and validateRequest
attributes was enabled which should be by default disabled, so, I
dissabled it and no body has reported that error once again.

Nishant

Peter wrote:
It's possible because of the 2 cpu situation and how your app is configured
that a WebGarden type of situation is occuring.
The key things here:
Your machineKey element should never be "Autogenerate". Make specific
encryption and decryption keys and place those in the element.

web.config for all sites should have the identical machineKey element.

Failing that, there are several directives that you can place in the <pages>
element to turn off ViewState vaidation and hashing.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Nishant" wrote:
Hi all,
We are facing a strange problem in our production environment. We are
running an ASP.NET web application under IIS 6.0 with Windows Server
2003 64-bit (There are 2 CPUs). The users are frequently getting an
"Invalid_Viewstate" error. The error description is "Unable to validate
data".
The exception is "System.Web.HttpException: Authentication of viewstate
failed"

Can anyone help?

-- Nishant
Dec 21 '06 #2

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

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
5
by: Hardy Wang | last post by:
Hi all: I developed a web site, it passed various testing internally. When I put this site in production, I receive some error reports from this site saying "the viewstate is invalid for this page...
2
by: sarvjeet Saini | last post by:
My application is working fine on our local server.We tried on two local servers for testing purpose. But when we host on our main server ,we got the following error: some it work Fine but not...
4
by: Anatoly | last post by:
We use web farm and apply machine key in web.config file as told in http://support.microsoft.com/default.aspx?scid=kb;en-us;323744 but it doesn't help Any other suggestions? Please help
0
by: faels | last post by:
We have an application that has been running in a load balanced Windows 2000/IIS 5.0 environment for quite some time. We would like to move to Windows Server 2003 Web Edition/IIS 6.0 platform in...
6
by: vinay | last post by:
What is this error?? Exception Details: System.Web.HttpException: Unable to validate data. System.Web.Configuration.MachineKey.GetDecodedData(Byte buf, Byte modifier, Int32 start, Int32...
2
by: Magdelin | last post by:
Hi, I get a Viewstate corrupted error on the Web servers(Win2K3, IIS 6.0, Application Center 2K SP1, ASP.NET) configured for NLB with no afinity/sticky sessions. ****Note: The servers are...
9
by: Jamie | last post by:
I am receiving an Invalid ViewState error after posting back to the same page twice. Consistently the error occurs after the second postback and not after the first. I have looked into creating...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.