473,756 Members | 6,852 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Corrupted ViewState (Yes, another issue concerning viewstate)

Hello World,

Okay, I have spent the day browsing the newsgroups and reading up on
article after article concerning ViewState corruption and so forth, and I
have a couple questions. We intermittantly get the following exception -

EXCEPTION MESSAGE:
The viewstate is invalid for this page and might be corrupted.

STACK TRACE:
at System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
at System.Web.UI.P age.LoadPageVie wState()
at System.Web.UI.P age.ProcessRequ estMain()

Perhaps once or twice a day, it changes. We're NOT using a server farm,
and I have ran through the following articles, and have tried to use their
recommendations for reproducing this behavior to no avail on our machines -

http://support.microsoft.com/default...b;en-us;812399 (Not a
problem, cannot reproduce)
http://support.microsoft.com/default...b;en-us;323744 (Not a
problem, cannot reproduce)
http://support.microsoft.com/default...b;en-us;316920 (Not a
problem, cannot reproduce)
http://support.microsoft.com/default...b;en-us;324488 (Not a
problem, cannot reproduce)

The pages we seem to be getting these exceptions on have relatively
large viewstates in them, but nothing monster (with the exception of one
page which has a 125,888 bytes of ViewState). We *are* currently in the
process of shaving down the ViewState by determining which controls need to
use it and not - so size won't be nearly this issue it is now in the future.

I have encountered one thread, however at
http://groups.google.com/groups?hl=e...%3D10%26sa%3DN
that peaked my interest. It's possible that the users may be timing out, and
if the validation key is autogenerated, and changes itself if the session
times out, then we could be seeing this as a potential issue.

My question is this,

1) Has anyone had any experience with this exception, and are there
possibilities for other issues outside of the support KDB articles I have
included in this mail,
2) How can I determine what the validationKey was at the time of an
exception? Is there a way I can grab this? I'm assuming not, or at least not
easily,
3) Does the validationKey timeout? And if so, how can I force it to
timeout so that I can see this issue / reproduce this issue.
4) Any other thoughts?

I understand that this issue has been beat down pretty good, but nothing
I have found so far seems to kick up any possible leads into the issue
causing this.

We're running the 1.1 framework on Server 2003.

Thanks in advance,
Ben

Nov 18 '05 #1
2 2823
you should supply the key (same as a server farm) so that its stable between
reboots.
you should turn off EnableViewState Mac because it fails a lot.

if you done both of these the other possibility is that the user is going
thru a proxy server that truncates the viewstate. some proxy servers will
truncate a hidden field to 2k. while large viewstates are ok for entranets,
extra or internets should keep the viewstate below 1k.
-- bruce (sqlwork.com)

"Ben Rush" <kw*****@yahoo. com> wrote in message
news:eT******** ******@TK2MSFTN GP09.phx.gbl...
Hello World,

Okay, I have spent the day browsing the newsgroups and reading up on
article after article concerning ViewState corruption and so forth, and I
have a couple questions. We intermittantly get the following exception -

EXCEPTION MESSAGE:
The viewstate is invalid for this page and might be corrupted.

STACK TRACE:
at System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
at System.Web.UI.P age.LoadPageVie wState()
at System.Web.UI.P age.ProcessRequ estMain()

Perhaps once or twice a day, it changes. We're NOT using a server farm, and I have ran through the following articles, and have tried to use their
recommendations for reproducing this behavior to no avail on our machines -
http://support.microsoft.com/default...b;en-us;812399 (Not a
problem, cannot reproduce)
http://support.microsoft.com/default...b;en-us;323744 (Not a
problem, cannot reproduce)
http://support.microsoft.com/default...b;en-us;316920 (Not a
problem, cannot reproduce)
http://support.microsoft.com/default...b;en-us;324488 (Not a
problem, cannot reproduce)

The pages we seem to be getting these exceptions on have relatively
large viewstates in them, but nothing monster (with the exception of one
page which has a 125,888 bytes of ViewState). We *are* currently in the
process of shaving down the ViewState by determining which controls need to use it and not - so size won't be nearly this issue it is now in the future.
I have encountered one thread, however at
http://groups.google.com/groups?hl=e...readm=uVR%23vR
cjDHA.1740%40TK 2MSFTNGP12.phx. gbl&rnum=15&pre v=/groups%3Fq%3DTh e%2BView%2BSt
ate%2Bis%2Binva lid%2Bfor%2Bthi s%2Bpage%2Band% 2Bmight%2Bbe%2B corrupted%26hl% 3
Den%26lr%3D%26i e%3DUTF-8%26oe%3DUTF-8%26scoring%3Dd %26start%3D10%2 6sa%3DN that peaked my interest. It's possible that the users may be timing out, and if the validation key is autogenerated, and changes itself if the session
times out, then we could be seeing this as a potential issue.

My question is this,

1) Has anyone had any experience with this exception, and are there
possibilities for other issues outside of the support KDB articles I have
included in this mail,
2) How can I determine what the validationKey was at the time of an
exception? Is there a way I can grab this? I'm assuming not, or at least not easily,
3) Does the validationKey timeout? And if so, how can I force it to
timeout so that I can see this issue / reproduce this issue.
4) Any other thoughts?

I understand that this issue has been beat down pretty good, but nothing I have found so far seems to kick up any possible leads into the issue
causing this.

We're running the 1.1 framework on Server 2003.

Thanks in advance,
Ben


Nov 18 '05 #2
Bruce,

I can understand the first thing you said, that is

"you should supply the key (same as a server farm) so that its stable
between reboots."

and I will make that as a recommendation. However, I would like to have a
bit more information concerning the issues being had by EnableViewState Mac,
preferrably a Microsoft KDB article, or a bit more *substance*. I'm not sure
if I like the idea of turning of the hashing of the ViewState. In other
words, when you say

"you should turn off EnableViewState Mac because it fails a lot."

Why is it failing? Or is just a unknown failure that Microsoft hasn't
recognized, etc.

Thanks,
Ben
"bruce barker" <no***********@ safeco.com> wrote in message
news:Oc******** ******@TK2MSFTN GP09.phx.gbl...
you should supply the key (same as a server farm) so that its stable between reboots.
you should turn off EnableViewState Mac because it fails a lot.

if you done both of these the other possibility is that the user is going
thru a proxy server that truncates the viewstate. some proxy servers will
truncate a hidden field to 2k. while large viewstates are ok for entranets, extra or internets should keep the viewstate below 1k.
-- bruce (sqlwork.com)

"Ben Rush" <kw*****@yahoo. com> wrote in message
news:eT******** ******@TK2MSFTN GP09.phx.gbl...
Hello World,

Okay, I have spent the day browsing the newsgroups and reading up on
article after article concerning ViewState corruption and so forth, and I have a couple questions. We intermittantly get the following exception -

EXCEPTION MESSAGE:
The viewstate is invalid for this page and might be corrupted.

STACK TRACE:
at System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
at System.Web.UI.P age.LoadPageVie wState()
at System.Web.UI.P age.ProcessRequ estMain()

Perhaps once or twice a day, it changes. We're NOT using a server farm,
and I have ran through the following articles, and have tried to use their recommendations for reproducing this behavior to no avail on our

machines -

http://support.microsoft.com/default...b;en-us;812399 (Not a
problem, cannot reproduce)
http://support.microsoft.com/default...b;en-us;323744 (Not a
problem, cannot reproduce)
http://support.microsoft.com/default...b;en-us;316920 (Not a
problem, cannot reproduce)
http://support.microsoft.com/default...b;en-us;324488 (Not a
problem, cannot reproduce)

The pages we seem to be getting these exceptions on have relatively
large viewstates in them, but nothing monster (with the exception of one
page which has a 125,888 bytes of ViewState). We *are* currently in the
process of shaving down the ViewState by determining which controls need

to
use it and not - so size won't be nearly this issue it is now in the

future.

I have encountered one thread, however at

http://groups.google.com/groups?hl=e...readm=uVR%23vR cjDHA.1740%40TK 2MSFTNGP12.phx. gbl&rnum=15&pre v=/groups%3Fq%3DTh e%2BView%2BSt ate%2Bis%2Binva lid%2Bfor%2Bthi s%2Bpage%2Band% 2Bmight%2Bbe%2B corrupted%26hl% 3 Den%26lr%3D%26i e%3DUTF-8%26oe%3DUTF-8%26scoring%3Dd %26start%3D10%2 6sa%3DN
that peaked my interest. It's possible that the users may be timing out,

and
if the validation key is autogenerated, and changes itself if the session times out, then we could be seeing this as a potential issue.

My question is this,

1) Has anyone had any experience with this exception, and are there
possibilities for other issues outside of the support KDB articles I have included in this mail,
2) How can I determine what the validationKey was at the time of an
exception? Is there a way I can grab this? I'm assuming not, or at least

not
easily,
3) Does the validationKey timeout? And if so, how can I force it to
timeout so that I can see this issue / reproduce this issue.
4) Any other thoughts?

I understand that this issue has been beat down pretty good, but

nothing
I have found so far seems to kick up any possible leads into the issue
causing this.

We're running the 1.1 framework on Server 2003.

Thanks in advance,
Ben



Nov 18 '05 #3

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

Similar topics

0
1810
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 gve the following error for VIEWSTATE. The internal network is protected by a Firewall. My suspicion is that
5
5665
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 and might be corrupted". I am wandering what kind of client side problem may cause this error? Is it possible that user uses a browser which has local cache turned on all the time? Thanks for any suggestion.
0
2338
by: Trevor Andrew | last post by:
Hi There, I have posted something previously regarding this issue, but I think I have some more concise questions to ask, and would like to get further feedback on this issue. Firstly the background. I have a small ASP.NET application under development. I'm using VS 2002 with Framework 1.1. One of the pages is a "resources" page that contains a list-box of various RSS feeds I am interested in surveying. As you select the different RSS...
3
2192
by: Gvnn | last post by:
Hi, I've a little problem, i've an asp.net page, with a runat server form, like this: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="index.aspx.vb" Inherits="indexGstPro"%> <HTML> <HEAD> </HEAD> <body>
2
525
by: .NET Developer | last post by:
On our external customer facing website recently we included a global error catching routine and forward the error message to our support team via email. We notice many emails with the following message. Internally or when we test the site from home we never receive this error. What could be causing this error? How to over come this issue? Our environment is WIN 2K, ..NET 1.1, ASP.NET, VS.NET 2003. Thanks in advance. ...
2
783
by: Brad | last post by:
I have an intranet app that has just started sporadically getting the following error "The viewstate is invalid for this page and might be corrupted." By sproadic I mean 3-4 times during the past two days out of 100's of hits. The error just started yesterday and this app has been running for quite some time without this error and has not been updated just before or after the error started. Reseaching this error I've checked the...
5
2106
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 gve the following error for VIEWSTATE. The internal network is protected by a Firewall. My suspicion is that
2
1320
by: TS | last post by:
I have some inner exceptions on dev and production server saying: Invalid character in a Base-64 string. OR Invalid Length of a Base-64 string or something like that. I cannot recreate this issue and don't know why it is happening. Someone suggested that it occurs when someone clicks submit on a page then closes the browser before the response comes back, OR they click the submit button and before it comes back they click it again. ...
3
8707
by: Nathan Sokalski | last post by:
I am recieving the following error on the second postback of a page I have written: The state information is invalid for this page and might be corrupted Stack Trace: System.Convert.FromBase64String(String s) +0
0
9384
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9212
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9973
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9645
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7186
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6473
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3742
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 we have to send another system
2
3276
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2612
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.