アプリケーションに 2 つのマスター ページがあり、ドロップダウンの選択に基づいてマスター ページを変更しています。
あるマスターページを別のマスターページに変更しようとすると、
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.]
また、コントロールを動的に追加することもありません。唯一の違いは、いくつかの画像コントロールがページで runat="server" として設定されていることです。しかし、それらのIDは2つのマスターページでも同じです