Foros del Web » Programando para Internet » ASPX (.net) »

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

Estas en el tema de The state information is invalid for this page and might be corrupted. en el foro de ASPX (.net) en Foros del Web. Tengo un reporte en ASP.NET con base de datos en SQL Server 2005 y me ha estado apareciendo el siguiente error!!, si alguien tiene idea ...
  #1 (permalink)  
Antiguo 12/08/2008, 09:53
 
Fecha de Ingreso: mayo-2008
Mensajes: 27
Antigüedad: 15 años, 11 meses
Puntos: 0
The state information is invalid for this page and might be corrupted.

Tengo un reporte en ASP.NET con base de datos en SQL Server 2005 y me ha estado apareciendo el siguiente error!!, si alguien tiene idea de como solucionarlo o como evitar que siga apareciendo esta excepcion!!! porfavor!!! y gracias de ante mano!!!







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


Source: System.Web


StackTrace: at System.Web.UI.ViewStateException.ThrowError(Except ion inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.HiddenFieldPageStatePersister.Load() at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


TargetSite: Void ThrowError(System.Exception, System.String, System.String, Boolean)


HelpLink:


Error: System.Web.HttpException: The state information is invalid for this page and might be corrupted. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: 189.155.21.10 Port: 1388 User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727) ViewState: /wEPDwUKMjA4MTU0OTI3MA8WBB4JU29ydEZpZWxkBQhhLm5vbWJ yZR4NU29ydEZpZWxkVHlwZWUWAgIHD2QWDgIBDw8WAh4ISW1hZ 2VVcmwFHC4uL0ltYWdlcy9mbGVjaGFfYXJyaWJhVC5naWZkZAI DDw8WAh4HVmlzaWJsZWdkFhwCBQ8QZGQWAWZkAgkPEGRkFgECC 2QCCw8QZGQWAQIGZAINDxBkEBUCBDIwMDcEMjAwOBUCBDIwMDc EMjAwOBQrAwJnZxYBAgFkAhEPEGRkFgECC2QCEw8QZGQWAQIHZ AIVDxBkEBUCBDIwMDcEMjAwOBUCBDIwMDcEMjAwOBQrAwJnZxY BAgFkAhcPEA8WAh4LXyFEYXRhQm91bmRnZA8WAQIKFgEQBQpDd WFscXVpZXJhZWdkZAIZDxAPFgIfBGdkEBUUmAFBZG1pbmlzdHJ hY2nDs24gUMO6YmxpY2EgICAgICAgICAgICAgICAgICAgICAgI CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIJcBQWxpbWV udGFjacOzbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI CAgI... ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.Convert.FromBase64String(String s) at System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString) at System.Web.UI.ObjectStateFormatter.System.Web.UI.I StateFormatter.Deserialize(String serializedState) at System.Web.UI.Util.DeserializeWithAssert(IStateFor matter formatter, String serializedState) at System.Web.UI.HiddenFieldPageStatePersister.Load() --- End of inner exception stack trace --- --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Except ion inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.HiddenFieldPageStatePersister.Load() at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  #2 (permalink)  
Antiguo 13/08/2008, 08:59
 
Fecha de Ingreso: mayo-2004
Ubicación: Guadalajara, Jalisco, México
Mensajes: 724
Antigüedad: 19 años, 11 meses
Puntos: 6
Respuesta: The state information is invalid for this page and might be corrupted.

Hola, es posible que lo que intentas guardar en el viewstate no este serializado, para eso, tendrias que agregarle el atributo Serializable a tu clase.. ó almacenar tus datos de otra manera, como ejemplo: una lista...

saludos
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:23.