Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The state information is invalid for this page and might be corrupted.

Status
Not open for further replies.

SpeedBWild

Programmer
Apr 29, 2004
117
US
I have a gridview which I populate with mostly integer data. When the use clicks the edit link I replace the label with dropdowns which are populated from a datatable. I will have up to 27 rows of data for this gridview with no more than 15 columns of data. Of the 15 columns all will be dropdown boxes except for two. Any idea how to get around this issue?

The state information is invalid for this page and might be corrupted.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The state information is invalid for this page and might be corrupted.

Source Error:


[No relevant source lines]


Source File: source.aspx.863d2cba.x4vyxvb-.0.cs Line: 0

Stack Trace:


[EndOfStreamException: Unable to read beyond the end of the stream.]
System.IO.BinaryReader.ReadByte() +12696898
System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +109
System.Web.UI.ObjectStateFormatter.DeserializeValue(SerializerBinaryReader reader) +371
System.Web.UI.ObjectStateFormatter.Deserialize(Stream inputStream) +169

[ArgumentException: The serialized data is invalid.]
System.Web.UI.ObjectStateFormatter.Deserialize(Stream inputStream) +11271016
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +408
System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +60
System.Web.UI.HiddenFieldPageStatePersister.Load() +173

[ViewStateException: Invalid viewstate.
Client IP: ::1
Port: 13755
Referer: User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
ViewState: Removed data
[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +177
System.Web.UI.HiddenFieldPageStatePersister.Load() +11282337
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +11358007
System.Web.UI.Page.LoadAllState() +56
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11352034
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11351550
System.Web.UI.Page.ProcessRequest() +269
System.Web.UI.Page.ProcessRequest(HttpContext context) +167
ASP.mypage_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\site\eede444a\6620da50\App_Web_mypage.aspx.863d2cba.x4vyxvb-.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270
 
This is an ASP.Net error and should be posted in that forum.

N-E-Way...

There is a possibility you may have too much data. This is unlikely, but possible if you have a significant number of values in the drop downs.

When you go to edit mode, is only a single row in edit mode? Or the whole grid?
Are you doing any javascript manipulation of the values?
Was this a one time error?

Lodlaiden

I finished a 2d game engine tutorial.
My wife's first comment: Why doesn't the waterfall move?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top