468,761 Members | 1,779 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,761 developers. It's quick & easy.

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 5548

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Rob Reckless | last post: by
1 post views Thread by Mind Dragon | last post: by
11 posts views Thread by Nad | last post: by
reply views Thread by Mattias Sundström | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.