+1-888-365-2779
Try Now
More in this section

Forums / 3.x Pre-release forums (retired) / Error when saving changes to a page and when dragging and dropping a control

Error when saving changes to a page and when dragging and dropping a control

4 posts, 0 answered
  1. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    14 Dec 2006
    Link to this post
     this is the error I receive when I either Save changes to a page after editing, or when i drag and drop a control onto the the editor:

     

    Server Error in '/' Application.


    Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

    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: Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

    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): Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.]
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +353
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300
       System.Web.UI.Page.LoadAllState() +520
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3444
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
  2. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    14 Dec 2006
    Link to this post
    Hello Ben,

    We have had similar issues with News controls and when browsing the page tree.
    Please provide more information so that we can fix this one as well:
    Does this happen on all pages or only on some specific one?
    Are there other controls on that page? If so, can you determine which one is causing the problem?

    Sincerely yours,
    Bob
    the telerik team

  3. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    14 Dec 2006
    Link to this post
    this happens on every page, when i click Save Changes, and if i click Cancel Changes.  Same thing goes for every control, as soon as i drop one onto a page, whether it already has controls or not, i get that same error.
  4. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    15 Dec 2006
    Link to this post

    Hello Ben,

    Can you tell us the steps to reproduce the problem or send us a project? Just remember to include the database if you are sending a project as well.
    Thanks for your anticipated cooperation.

    All the best,
    Bob
    the telerik team
Register for webinar
4 posts, 0 answered