asp.net.netumbraco.net-4.5asp.net-4.5

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


I am receiving the following error message after an HTTP POST on an ASP.NET form hosted inside a UserControl:

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.

Here's additional info:

I have applied all the latest service packs. I have run out of ideas now! I have even restarted it and also performed a richual over the server involving a song and a special dance to no avail.


Solution

  • OK, so the answer is literally: "Set up a new server with all the same software as the last one and try again" and it works now.