Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8365335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:37:59+00:00 2026-06-09T12:37:59+00:00

Failed to load viewstate. The control tree into which viewstate is being loaded must

  • 0

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.

The page loads fine, until I include an asp panel on the page. Then I see the above error.

Can anyone think of a possible cause for this? The asp panel is empty, I’ve literally just created a test:

<asp:Panel runat="server" ID="pnlTest"></asp:Panel>

And it breaks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:38:00+00:00Added an answer on June 9, 2026 at 12:38 pm

    The problem you are experiencing is down to you changing things mid-way through the process…

    When you request a page from ASP.NET, it uses the mark-up in the .aspx and .ascx files. From this (along with lots of other things, including any dynamic controls you create in the code-behind) it creates the ViewState, which is stored in your page in a hidden field called __VIEWSTATE.

    When you then subsequently post-back the page to the server (through a link, or a button click, etc) the server will load that ViewState information, and expect all the controls in the .aspx and .ascx files to be in exactly the same state.

    From what I can tell from your comments, you are doing is this…

    • Requesting the page from the server (which is loading the HTML, including the __VIEWSTATE)
    • Changing the .aspx page on the server (in this case adding a new <asp:Panel>)
    • Posting the page back to the server and getting an error.

    In this third stage, the server is looking at the controls in the .aspx and looking at the information in the __VIEWSTATE… the error is because the controls do not match!
    The server is not expecting to see an <asp:Panel> in the page, because the __VIEWSTATE mentions nothing about it.


    So the solution to your problem is simply – just add the control to the .aspx before you load the page into the browser

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Failed to load database information. Details: The database DLL crdb_ado.dll could not be loaded.
0:025> !pe Failed to load data access DLL, 0x80004005 Verify that 1) you have
Have a page that adds controls dynamically. Control state is being retrieved from database
We are getting sporadic reports of the famous Failed to load viewstate. It is
I want to load resource that is located in android.R.attr class. Next code failed
Chrome simply refuses to run any Javascript. It shows a Failed to load resource
I was try to load unlimited categories to dropdownlist but I failed. **Categories** ID,
My google-fu has failed me - can MonoDevelop be used on Windows? Preferably without
load failed -- arguments: [Object api=Object, Object request=Object reader=Object scope=Object, Object tId=0 status=200 statusText=OK,
Get the following error periodically in an IIS application: Failed to load resources from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.