locked
WebSite inside ISV getting below error when gridview page is cliked to show next gridview page records...The state information is invalid for this page and might be corrupted.] RRS feed

  • Question

  • An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    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) +90

       System.Web.UI.ClientScriptManager.EnsureEventValidationFieldLoaded() +206

     

    [ViewStateException: Invalid viewstate.

             Client IP: ***.**.**.**

             Port: *****

             Referer: https://**********/ISV/OEMExcelUpload/Upload.aspx?guid=53D1345B-A7CF-E011-920D-00155D69B60A

             Path: /ISV/OEMExcelUpload/Upload.aspx

             User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; InfoPath.3; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MS-RTC LM 8)

             ViewState: /wEWCQK5lolTAtj5/pUGAtDui4sIAvHx8r8CAvHxjr8CAvHxmr8CAvHxlr8CAvHxgr8CAvHxnr8CYYLy34nmFP/3Xrn2Rbb/K90etRCmkORnCmov5NRJyeI=]

     

    [HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]

       System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) +3434878

       System.Web.UI.ClientScriptManager.EnsureEventValidationFieldLoaded() +11268556

       System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +75

       System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +44

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11352034

       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11351550

       System.Web.UI.Page.ProcessRequest() +269

       System.Web.UI.Page.ProcessRequest(HttpContext context) +167

       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625

       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270


    Sanjay
    Tuesday, December 6, 2011 1:54 PM

Answers

  • Is this CRM 4.0 or 2011?  

    ISV folder is no longer supported in 2011, you would need to put your application in a separate website and app pool, but you can put it on the same server.


    Jamie Miley
    Check out my about.me profile!
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!
    • Marked as answer by Sanjay KS Wednesday, January 18, 2012 8:20 PM
    Tuesday, December 6, 2011 4:12 PM
    Moderator
  • Thank you for your reply....

    It was resolved by adding tag into

    <pages controlRenderingCompatibilityVersion="3.5clientIDMode="AutoID" enableEventValidation="falseenableSessionState="trueenableViewState="true" />


    Sanjay
    • Marked as answer by Sanjay KS Wednesday, January 18, 2012 8:20 PM
    Monday, December 12, 2011 7:36 AM

All replies

  • Is this CRM 4.0 or 2011?  

    ISV folder is no longer supported in 2011, you would need to put your application in a separate website and app pool, but you can put it on the same server.


    Jamie Miley
    Check out my about.me profile!
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!
    • Marked as answer by Sanjay KS Wednesday, January 18, 2012 8:20 PM
    Tuesday, December 6, 2011 4:12 PM
    Moderator
  • Thank you for your reply....

    It was resolved by adding tag into

    <pages controlRenderingCompatibilityVersion="3.5clientIDMode="AutoID" enableEventValidation="falseenableSessionState="trueenableViewState="true" />


    Sanjay
    • Marked as answer by Sanjay KS Wednesday, January 18, 2012 8:20 PM
    Monday, December 12, 2011 7:36 AM