ThinkGeo.com    |     Documentation    |     Premium Support

Overlay Breaking Changes Cause ViewState Error

I just finished downloading and installing the latest WebEdition 3 beta (3.0.131.0) and I changed my Google Map reference to a BackgroundOverlay. The initial map comes up fine but when I click any button on the page I get the following error:


Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: 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.


If I put the Google Map back to a CustomOverlay it all works fine again, except my dynamic overlays do not display due to the new breaking change.


The map, and the rest of the controls on the page, are in an UpdatePanel. Apparently something is not getting written correctly back to ViewState.


Bob Mc.



That’s a bug of BackgroundOverlay. It should be an “Overlay” but now it is a “LayerOverlay” by mistake. This will be solved in the next version. Sorry for the inconvenience.