Failed to load viewstate control identifying information - by Jeff Fischer

Status : 

  By Design<br /><br />
		The product team believes this item works according to its intended design.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 634324 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 1/2/2011 1:36:55 PM
Access Restriction Public


The exception message:

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. 

The HttpException should throw some sort of identifying information about the control or controls mismatch taking place within viewstate.  The Control.ClientID or Control.ID or some sort of identifying information of the current viewstate or the page's viewstate should be included in the exception message.
Sign in to post a comment.
Posted by Scott [MSFT] on 2/23/2011 at 3:49 PM
Due to the implementation it is not possible to provide a better error. However there is a feature that allows for the order to be changed and it is the ViewStateModeById attribute which tells us to lookup viewstate by id instead of order. See an example here:
Posted by Microsoft on 1/11/2011 at 11:16 PM
We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 1/6/2011 at 11:44 PM

Sorry for bothering. Is there any update?

It would be greatly appreciated if you could provide us with that information as quickly as possible. If we do not hear back from you, we will close this issue.

Thanks you,

Posted by Microsoft on 1/3/2011 at 1:07 AM
Thank you for reporting this issue. Unfortunately, we are unable to reproduce the issue with the steps you provided. The sample code does not send any exception message.

Could you please provide us with the following information?

1. Describe some more details.
2. Attach some screenshots if possible.

It would be greatly appreciated if you could provide us this information as quickly as possible.

Thank you,
Posted by Microsoft on 1/2/2011 at 2:23 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(