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

viewstate invalid using UpdatePanel

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 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
viewstate.
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"?>
<viewstate>
<ArrayList>
<Int32>71185616</Int32>
<Int32>-753251614</Int32>
<Int32>915909835</Int32>
<Int32>1698182509</Int32>
<Int32>1697985901</Int32>
<Int32>-710536411</Int32>
<Int32>76432080</Int32>
<Int32>560606433</Int32>
</ArrayList>
</viewstate>

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
manually.

This is the error I get when manually posting the error back to
file.aspx:

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: 10.0.0.152
Port: 1875
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:
1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
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)
+116
System.Web.UI.HiddenFieldPageStatePersister.Load() +240
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +83
System.Web.UI.Page.LoadAllState() +35
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+6978
System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+213
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context)
+18
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:
0

System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute()
+584
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.

Thanks,

-Ty

Mar 27 '07 #1
0 5699

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

Similar topics

4
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...
4
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...
1
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...
11
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...
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...
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: 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...
0
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...
2
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...
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:
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?
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...

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.