2
Answers

Error while submit the form(aspx page)

Sathish Kumar

Sathish Kumar

9y
967
1
Hi,
 
 
           I've face a problem when i try to export the data to PDF or EXCEL from aspx page. I've using the JQXWidget grid control to bind the data and tried to export that grid data to PDF. that time this Unhandled  server exception has occured.
 
           

Server Error in '/' Application.

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: c:\WINXP\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f2a82709\6f5957c3\App_Web_hrldtwqz.6.cs Line: 0

Stack Trace:

[FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters. ]    System.Convert.FromBase64String(String s) +0    System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +136    System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +37    System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +55    System.Web.UI.HiddenFieldPageStatePersister.Load() +227  [ViewStateException: Invalid viewstate.  	Client IP: 127.0.0.1 	Port:  	Referer: http://localhost:2737/AnalyseReport.aspx 	Path: /AnalyseReport.aspx 	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.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E) 	ViewState: /wEPDwUINDk2NTI0MjcPZBYCZg9kFgJmD2QWAgIDD2QWBgIDDw8WAh4EVGV4dAUHc2F0aGlzaGRkAgQPDxYCHwAFEVBvaW50ZWwgU29sdXRpb25zZGQCBQ9kFgICAQ9kFgYCAw8QDxYGHg1EYXRhVGV4dEZpZWxkBQpTdXJ2ZXlOYW1lHg5EYXRhVmFsdWVGaWVsZAUIU3VydmV5SUQeC18hRGF0YUJvdW5kZ2QQFRERLS1TZWxlY3QgU3VydmV5LS0OQ3VzdG9tZXJTdXJ2ZXkNUHJvZHVjdFN1cnZleQpUZXN0U3VydmV5BUNoZWNrS0NvcHlvZkN1c3RvbWVyU3VydmV5dGdnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZwdTQ0dWWE1MEENvcHlvZlRlc3RTdXJ2ZXkQU2FtcGxlTWFpbFN1cnZleQlUZXN0Vm9pY2UHdGVzdFNQMQdUZXN0SVZSDUNvcHlvZlRlc3RJVlIKQ29weW9mUFBTMQl0ZXN0TXV0aHUJQ2hlY2tGdW5jBnRlc3RNZRURES0tU2VsZWN0IFN1cnZleS0tATEBMgE0ATUCMzQCNDMCODgDMTE1AzExNgMxMzADMTMxAzEzMwMxMzYDMTM5AzE0MAMxNDEUKwMRZ2dnZ2dnZ2dnZ2dnZ2dnZ2dkZAIFDxAPFgYfAQUKUHJvbXB0T...]  [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) +172    System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) +45    System.Web.UI.HiddenFieldPageStatePersister.Load() +376    System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +163    System.Web.UI.Page.LoadAllState() +105    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6503    System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +323    System.Web.UI.Page.ProcessRequest() +129    System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +46    System.Web.UI.Page.ProcessRequest(HttpContext context) +156    ASP.analysereport_aspx.ProcessRequest(HttpContext context) in c:\WINXP\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f2a82709\6f5957c3\App_Web_hrldtwqz.6.cs:0    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +870    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +120 
 
 
 
 
 
          Please give me any suggestion or solution ASAP. Thanks in Advance. 

Answers (2)