The status information for this page is invalid and may be corrupted. Another solution.

Source: Internet
Author: User
Tags stack trace

Problem description, page a.aspx use AJAX to load b.aspx for paging. But in page A, there are server-side controls that need to interact with the server side to accomplish certain functions.

However, an error message appears when you click the server control ready to interact with the server side:

The status information for this page is invalid and may be corrupted.

Note: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace for more information about the error and where the error occurred in the code.

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

SOURCE Error:

[No related source lines]


Source file: c:/windows/microsoft.net/framework/v2.0.50727/temporary asp.net files/teacherwebsite/aba2332f/c906139a/app_ Web_ppk8ycdo.10.cs Line: 0

Stack trace:

[Invalid character in the formatexception:base-64 string. ]

System.Convert.FromBase64String (String s) +0

System.Web.UI.ObjectStateFormatter.Deserialize (String inputstring) +67

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 () +136

Through the Internet query, give the following solutions:

Add the following code to the Web.config in the project:

<pages enableeventvalidation= "False" viewstateencryptionmode= "Never"/>

Source: http://www.cnblogs.com/ufo0303/archive/2008/04/10/1146026.html

However, according to the method given online does not solve the problem.

So, see also: http://blog.csdn.net/Yamzef/archive/2007/03/26/1541160.aspx. which says:

If you do not add these two sentences before the callback, __theformpostdata will add the existing page status post data on the original basis, so that you can say that you have included two post data in the callback, but the server side still treats it as a treat. Results The server does not analyze post data and only returns a message that the state of the page is corrupted

Analysis, which may be a B page, contains form forms to cause problems. The form label in the b.aspx is then deleted. Problem solving.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.