472,986 Members | 2,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,986 software developers and data experts.

viewstate invalid using UpdatePanel


I've been working on this issue for a while now, with no leads or

The scenario is a homemade modal dialog using UpdatePanels. There a
couple ImageButtons inside of usercontrols with their OnClick events
delegated to file.aspx.

Here is my error (These happen fairly infrequently, say, 5-10 times an
hour on a site that gets 50-80k on an average day):

SERVERNAME02A,SiteName,3/27/2007 7:12:00 AM,/file.aspx,Invalid
Client IP: xx.xx.xx.xx
Port: 45832
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
ViewState: /
wEWCALQ6fghAuKV6ZgNAsvZ3rQDAu3q4KkGAu3q1KkGAqWmmK0 NAtCFuSQC4dmoiwJl6EVu373wYYDfEMBcgUWFlDY2DQ==
Referer: http://www.x.com/file.aspx
Path: /file.aspx

We have a server farm using NLB, and have modified our machineKeys to
match, this is not the problem as far as I can tell.

I've attempted to disable viewstate to no avail.

Using a viewstate decoder, I noticed the 'bad' viewstates are
submitting an ArrayList of ints... I don't know why.

The above viewstate in the error translates to this:

<?xml version="1.0" encoding="utf-16"?>

Somewhere, somehow, the viewstate is becoming corrupted and is
creating an ArrayList of ints, we have been unable to repro without
submitting the bad viewstate from the logs directly back to file.aspx

This is the error I get when manually posting the error back to

Source Error:

[No relevant source lines]
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary
ASP.NET Files\root\f44720c4\fa913f4b
\App_Web_mypayscale.aspx.cdcab7d2.lj45eshy.0.cs Line: 0

Stack Trace:

[InvalidCastException: Unable to cast object of type
'System.Collections.ArrayList' to type 'System.Web.UI.Pair'.]
System.Web.UI.HiddenFieldPageStatePersister.Load() +168

[ViewStateException: Invalid viewstate.
Client IP:
Port: 1875
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv: Gecko/20070309 Firefox/
ViewState: /
wEWCALQ6fghAuKV6ZgNAsvZ3rQDAu3q4KkGAu3q1KkGAqWmmK0 NAtCFuSQC4dmoiwJl6EVu373wYYDfEMBcgUWFlDY2DQ==
Referer: http://liontamer.domain.omitted/fakeviewstate.aspx
Path: /file.aspx]

[HttpException (0x80004005): The state information is invalid for this
page and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError(Except ion inner, String
persistedState, String errorPageMessage, Boolean macValidationError)
System.Web.UI.HiddenFieldPageStatePersister.Load() +240
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +83
System.Web.UI.Page.LoadAllState() +35
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context)
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.mypayscale_aspx.ProcessRequest(HttpContext context) in c:
\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tempor ary ASP.NET Files
\root\f44720c4\fa913f4b\App_Web_mypayscale.aspx.cd cab7d2.lj45eshy.0.cs:

System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously) +64
I am seriously at a loss here.

Any help, input, ideas, or solutions are welcome.



Mar 27 '07 #1
0 5675

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

Similar topics

by: Rob Reckless | last post by:
I'm creating a web application using c# and keep getting the following error: The viewstate is invalid for this page and might be corrupted. Description: An unhandled exception occurred...
by: Ersin Gençtürk | last post by:
Server : WEB System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: The View State is invalid for this page and might be...
by: Mind Dragon | last post by:
I have an ASP application that works fine locally but when it's uploaded occasionally, I get viewstate errors. Another thing is that the viewstate for that page is disabled. There are cases where I...
by: Nad | last post by:
Hello, I have a page with two link buttons. When I click on the first one I call server.execute("target.aspx") to view target.aspx on the original page. Then I click on the second link button...
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...
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...
by: Mattias Sundström | last post by:
Hi! I have an annoying problem concerning viewstate in dynamically loaded user controls. I have a menu and a placeholder on an aspx page. The menu uses AsyncPostbackTriggers to call the...
by: Dwight Johnson | last post by:
I am just starting to use AJAX, and I've run into a problem that I cannot resolve. I have a text box, the third of three controls in an UpdatePanel. Here's the scenario: 1. I create all the...
by: qwedster | last post by:
Folks! The following is a "Hello World" kind of code for ViewState. I just want to know how to retain the ViewState 1) while Page Refresh when using UpdatePanel and also 2) While I reverting back...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.