Javascript error selecting page layout

May 22, 2008 at 2:44 AM
On the latest version, if you click on a tab, select the page layout icon, then select a layout from the popup window, you receive a javascript error:
505|error|500|Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.|

Besides setting "enableEventValidation=false" in your web.config (which works but opens security issues), does anyone know of a solution to fix this?


May 24, 2008 at 2:57 PM
The error that I get from just about all of the JS is the call to the page service.  Most of these calls want to have the Profile.UserName in the constructor to the DashboardFacade class.  However, if this is a 'true' webservice - that value is going to be null.  Profile is null in these cases and very well should be.  A web service is agnostic to the outside world - it should work independent of the current user.

It would appear that since we are passing in the PageID, we shouldn't need the username - since we are just throwing the PageID away anyway - see RenamePage as an example.