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

ViewState (v1.1) gets corrupted after 978th characters

Hi, I've been getting dozens of the same exceptions every week from our web
server (running asp.net v1.1).

I looked at the viewstate in the exception, all of them shared the same
problem: having some extra characters (0x21 0x0d 0x0a 0x20, which is "!\r\n
") inserted after the 978th character.

There's no server farm or load balancing and the problem came from all major
browsers (e.g. IE, Firefox) so I'm suspecting some kind of browser plug-in
or maybe the firewall, anti-virus software did this to the hidden form
field.

Does anyone know the cause of this problem?, or even a cure?

TIA,
Jerry

Here's the exception stack:

HttpException: "Invalid_Viewstate ...
....

HttpException: "Authentication of viewstate failed. 1) If this is a cluster,
edit <machineKey> configuration so all servers use the same validationKey
and validation algorithm. AutoGenerate cannot be used in a cluster. 2)
Viewstate can only be posted back to the same page. 3) The viewstate for
this page might be corrupted."
at System.Web.UI.LosFormatter.Deserialize(String input)
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()

HttpException: "Unable to validate data."
at System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf, Byte[]
modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.LosFormatter.Deserialize(String input)
May 31 '06 #1
1 1322
Some proxy servers or web accelrators tend to chop up the hidden fields if
they are larger than certain size. Check your web log for these errors and
see if you can see some kind of proxy server installed for these users.
"Jerry" <hu***@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi, I've been getting dozens of the same exceptions every week from our
web server (running asp.net v1.1).

I looked at the viewstate in the exception, all of them shared the same
problem: having some extra characters (0x21 0x0d 0x0a 0x20, which is
"!\r\n ") inserted after the 978th character.

There's no server farm or load balancing and the problem came from all
major browsers (e.g. IE, Firefox) so I'm suspecting some kind of browser
plug-in or maybe the firewall, anti-virus software did this to the hidden
form field.

Does anyone know the cause of this problem?, or even a cure?

TIA,
Jerry

Here's the exception stack:

HttpException: "Invalid_Viewstate ...
...

HttpException: "Authentication of viewstate failed. 1) If this is a
cluster, edit <machineKey> configuration so all servers use the same
validationKey and validation algorithm. AutoGenerate cannot be used in a
cluster. 2) Viewstate can only be posted back to the same page. 3) The
viewstate for this page might be corrupted."
at System.Web.UI.LosFormatter.Deserialize(String input)
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()

HttpException: "Unable to validate data."
at System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf, Byte[]
modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.LosFormatter.Deserialize(String input)

Jun 1 '06 #2

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

Similar topics

0
by: Anup Jishnu | last post by:
Hi, I have installed ASP.Net application on a system. When accessing the Application from within the LAN, it works fine. However, when I access the application from the Internet, some pages...
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: Mike | last post by:
hi to all does any body know or receive this message before and how i can repare this: The viewstate is invalid for this page and might be corrupted. thank's Mike
5
by: Anup Jishnu | last post by:
Hi, I have installed ASP.Net application on a system. When accessing the Application from within the LAN, it works fine. However, when I access the application from the Internet, some pages...
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...
2
by: Ramakrishnan Nagarajan | last post by:
Hi, I tried to execute a page. For first few steps it was working fine. Then suddenly at an unknown step of a dropdown change I am getting the following error message. The viewstate is invalid...
6
by: Peter Zolja | last post by:
Hi, I'm building a webcontrol that contains a dynamic list of other controls. My problem is that when I add or remove an item the synchronization between the ViewState and the Controls...
7
by: GS | last post by:
Hello, I'm receiving The state information is invalid for this page and might be corrupted error message when running code below. This happens on second post back. Why is it happening? My...
0
by: tynorton | last post by:
Hey, I've been working on this issue for a while now, with no leads or success. The scenario is a homemade modal dialog using UpdatePanels. There a couple ImageButtons inside of usercontrols...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: 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: 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
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.