none
[InvalidCastException: Specified cast is not valid.] / [HttpException: The state information is invalid for this page and might be corrupted.] RRS feed

  • Question

  • I am getting the following issue when I used the SessionPageStatePersister for saving the viewstate data in session. The stack trace does not show the detailed source of the error. What is the general cause for the issue and how can it be resolved?

    [InvalidCastException: Specified cast is not valid.]
    at System.Web.UI.SessionPageStatePersister.Load()

    [HttpException: The state information is invalid for this page and might be corrupted.]
    at System.Web.UI.SessionPageStatePersister.Load()
    at Telerik.Web.UI.RadSessionPageStatePersister.Load()
    at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
    at System.Web.UI.Page.LoadAllState()
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,\ Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,\ Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest()
    at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
    at System.Web.UI.Page.ProcessRequest(HttpContext context)
    at ASP.default_aspx.ProcessRequest(HttpContext context)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Wednesday, December 19, 2012 7:20 AM