Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Donate Today!

Do you enjoy these
technical forums?
Donate Today! Click Here

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

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

SpeedBWild (Programmer) (OP)
19 Aug 11 13:12
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: http://localhost/Mypagte.aspx
    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

 
 
Qik3Coder (Programmer)
22 Aug 11 12:31
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?

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close