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

    Question

  • I am getting this error....

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

    please help

    Thanks in advance


    Abdhesh Kr. Mishra Software Developer(.Net(C#, ASP.Net, SQL, Java Script)) Information Technology

    Friday, May 04, 2012 10:57 AM

Answers

All replies

  • Hi Abdesh,

    can you give more details what you did exactly? Without any details we can only point you to some description of the error (where it would be easier if you check what google or bing find if you search for it yourself).

    It seems that your problem comes with a asp.net page - so I would recommend to even ask for help inside an asp.net forum. You can find these at http://asp.net - this forum covers the base class library only.

    You might find these blog entries usefull:
    http://renditionprotocol.blogspot.de/2007/01/state-information-is-invalid-for-this.html
    http://syedgakbar.wordpress.com/2007/11/08/one-possible-reason-for-%E2%80%9Cthe-state-information-is-invalid-for-this-page%E2%80%A6%E2%80%9D-exception/

    With kind regards,

    Konrad

    Friday, May 04, 2012 11:15 AM
  • Hi Konrad Neitze,

    Thank for reply.

    i am geting this error on IE but its working with Firefox, Crome

    full description is here

    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: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\0cf5be70\f9060c80\App_Web_zbptw0sn.9.cs    Line: 0

    Stack Trace:
    [FormatException: Invalid character in a Base-64 string.]
       System.Convert.FromBase64String(String s) +0
       System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +77
       System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
       System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
       System.Web.UI.HiddenFieldPageStatePersister.Load() +113
    
    [ViewStateException: Invalid viewstate. 
    	Client IP: 115.254.61.193
    	Port: 9342
    	User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
    	ViewState: /wEPDwUKLTYwMjA4NzE5NA9kFgJmD2QWAmYPZBYCAgMPZBYOAgEPZBYEAgEPZBYCZg9kFgICAw9kFgICAQ8PFgIeBFRleHQFDWFiZGhlc2hzdW50ZWNkZAIDDzwrAAkBAA8WBB4IRGF0YUtleXMWAB4LXyFJdGVtQ291bnQCBGQWCGYPZBYCAgEPFgIfAAVKPGxpPjxhICBocmVmPSdDYXRlZ29yeS5hc3B4P0xldmVsSUQ9TVE9PSc+PHNwYW4+TW90b3JiaWtlczwvc3Bhbj48L2E+PC9saT5kAgEPZBYCAgEPFgIfAAVMPGxpPjxhICBocmVmPSdVc2VyUHJvZmlsZS5hc3B4P0lEPU56QT0nPjxzcGFuPlRlY2hub2xvZ3l0ZWN0PC9zcGFuPjwvYT48L2xpPmQCAg9kFgICAQ8WAh8ABUc8bGk+PGEgIGhyZWY9J1VzZXJQcm9maWxlLmFzcHg/SUQ9TnpZPSc+PHNwYW4+R3JXZWdSYWNlPC9zcGFuPjwvYT48L2xpPmQCAw9kFgICAQ8WAh8ABUk8bGk+PGEgIGhyZWY9J1VzZXJQcm9maWxlLmFzcHg/SUQ9T0RJPSc+PHNwYW4+Um95YWwgSW5kaWE8L3NwYW4+PC9hPjwvbGk+ZAIDD2QWFAIBD2QWAmYPFgIeBGhyZWYFGy4uL1VzZXJQcm9maWxlLmFzcHg/SUQ9TmpZPWQCAw9kFgJmDxYCHwMFKC4uL0xpc3RCbG9nLmFzcHg/...]
    
    [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) +106
       System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) +14
       System.Web.UI.HiddenFieldPageStatePersister.Load() +217
       System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105
       System.Web.UI.Page.LoadAllState() +43
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
       System.Web.UI.Page.ProcessRequest() +80
       System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
       System.Web.UI.Page.ProcessRequest(HttpContext context) +49
       ASP.addtopic_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\0cf5be70\f9060c80\App_Web_zbptw0sn.9.cs:0
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    


    Abdhesh Kr. Mishra Software Developer(.Net(C#, ASP.Net, SQL, Java Script)) Information Technology

    Friday, May 04, 2012 11:27 AM
  • Hi Abdhesh,

    Please remove runat="server" tag from the popup page and try. It will work :)


    Regards, http://shwetamannjain.blogspot.com

    Friday, May 04, 2012 1:12 PM
  • Hi, 

    If viewstate is not significant for the page you can disable. There are multiple reasons for error on viewstate check this KB on this.

    http://support.microsoft.com/default.aspx?scid=kb;en-us;555353&sd=rss&spid=6351

    Hope this helps you...


    If this post answers your question, please click "Mark As Answer". If this post is helpful please click "Mark as Helpful".

    Sunday, May 06, 2012 4:14 AM
  • thnx Shweta Jain

    saved me. 

    i was looking for an answer and tried everuthing. your answer is the correct one!!!

    thnx

    Sunday, September 30, 2012 12:06 PM
  • Hi Shweta,

    I am also getting the same error.Could you please tell where exactly we should remove runat="Server" tag.In my page there are several control where I am using runat="Server"  tag.

    Thanks

    Thursday, January 09, 2014 8:24 AM