1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Invalid postback or callback argument when I try to publish

Invalid postback or callback argument when I try to publish

2 posts, 0 answered
  1. Scott
    Scott avatar
    4 posts
    Registered:
    05 Sep 2008
    25 Sep 2008
    Link to this post
    When trying to publish a page within Sitefinity 3.2 I keep getting the following error.

    "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."

    for test purposes I have tried adding enableEventValidation = "false" to my web.config, didn't work.

    The same thing happens if I click on the "Cancel changes" link.  I have read through everything in the User Manual and tried every setting in IIS that I can think of.

    I have read similar post with the same error, but they all seem to relate to AJAX controls within the page. I am not using any AJAX within my pages.  All of my pages are very basic using the "Generic Content" control.

    Any suggestions would be appreciated greatly.  Thanks
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    29 Sep 2008
    Link to this post
    Hello Scott,

    This server error shows up under the following circumstances: the user is trying to make a PostBack to the server while the page is still loading (part of its controls are not loaded yet). This is a security issue, so that users cannot post malicious forms to the server and it is not a good idea to have it disabled.

    Also, if you are experiencing the problem using a slow internet connection, this could be the issue. The only solution though, would be to disable PostBack to the server until the whole page is loaded, which again would not be a good design move.

    In the meantime, please turn off EventValidation for the ~/Sitefinity/Admin/EditPage.aspx page:

    <%@ Page Inherits="Telerik.Cms.Web.EditPage" MasterPageFile="~/Sitefinity/Dummy.master" EnableEventValidation="false" %> 

    Do let us know if this helps.

    Regards,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered