viewstate error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hillary Hill

    #1

    viewstate error

    I am getting the following error.
    Ths steps are
    1. A Page with Datagrid and literal control.
    2. View state is the default one for all the controls. (Not changed).
    3. When user clicks the HTML button, I am redirecting the user to
    myNext.aspx page from the client side code as shown.
    document.frmFor m.action="myNex t.aspx";
    document.frmFor m.submit();
    What is the error that I am making here?
    Thanks,
    Hill
    Server Error in '/MyProject' Application.
    ----------------------------------------------------------------------------
    ----

    The viewstate 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.Http Exception: The viewstate is invalid for
    this page and might be corrupted.

    Source Error:


    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:


    [HttpException (0x80004005): The viewstate is invalid for this page and
    might be corrupted.]
    System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
    System.Web.UI.P age.LoadPageVie wState()
    System.Web.UI.P age.ProcessRequ estMain()





    ----------------------------------------------------------------------------
    ----

    Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
    Version:1.1.432 2.573


  • TomEgginger

    #2
    Re: viewstate error

    Hi,

    actually this is a .net bug (the error message, to be more precise).
    Check this msdn article - there is a hotfix available:

    The "Viewstate is invalid for this page" error message does not provide
    sufficient information to troubleshoot the issue


    Regards,

    Tom


    "Hillary Hill" <HillaryHill_SM O@hotmail.com> schrieb im Newsbeitrag
    news:ekTgDt$VFH A.2572@TK2MSFTN GP14.phx.gbl...[color=blue]
    > I am getting the following error.
    > Ths steps are
    > 1. A Page with Datagrid and literal control.
    > 2. View state is the default one for all the controls. (Not changed).
    > 3. When user clicks the HTML button, I am redirecting the user to
    > myNext.aspx page from the client side code as shown.
    > document.frmFor m.action="myNex t.aspx";
    > document.frmFor m.submit();
    > What is the error that I am making here?
    > Thanks,
    > Hill
    > Server Error in '/MyProject' Application.
    > ----------------------------------------------------------------------------
    > ----
    >
    > The viewstate 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.Http Exception: The viewstate is invalid for
    > this page and might be corrupted.
    >
    > Source Error:
    >
    >
    > 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:
    >
    >
    > [HttpException (0x80004005): The viewstate is invalid for this page and
    > might be corrupted.]
    > System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
    > System.Web.UI.P age.LoadPageVie wState()
    > System.Web.UI.P age.ProcessRequ estMain()
    >
    >
    >
    >
    >
    > ----------------------------------------------------------------------------
    > ----
    >
    > Version Information: Microsoft .NET Framework Version:1.1.432 2.573;
    > ASP.NET
    > Version:1.1.432 2.573
    >
    >[/color]


    Comment

    Working...