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

Forums / Bugs & Issues / RegisterRequiresControlState can only be called before and during PreRender.

RegisterRequiresControlState can only be called before and during PreRender.

4 posts, 0 answered
  1. Fuk
    Fuk avatar
    1 posts
    Registered:
    03 Jul 2013
    20 Feb 2014
    Link to this post
    Hi,

    I am still new with Sitefinity and still exploring, i am using sitefinity 5.1

    I get this error while i try to edit one of my pages

    RegisterRequiresControlState can only be called before and during PreRender.

    i also posted some Print Screen below

    But i still can preview, edit title properties, and edit permission

    Any idea why this is occurring ?

  2. Slaveya
    Slaveya avatar
    8 posts
    Registered:
    01 Jul 2016
    24 Feb 2014
    Link to this post
    Hello Fuk,

    We need more information about your environment:
    1. Do you have a custom widget, that inherits Sitefinity document list widget?
    2. Do you have more than one Sitefinity document list widgets in your page, this can cause the problem indeed?
    3. Have you tried to modify somehow the documents collection?

    We need exact steps to reproduce the problem.

    Regards,
    Slaveya
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
  3. Judy Markworth
    Judy Markworth avatar
    8 posts
    Registered:
    06 Apr 2010
    04 Apr 2014 in reply to Slaveya
    Link to this post

    I too am having this issue but in version 6.3.5000.  It also occurs when I'm trying to edit a page and while I have no custom widgets, I do have multiple document lists on the page.  What do I do to get around this obvious bug?

  4. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    02 Dec 2016
    09 Apr 2014
    Link to this post
    Hi Judy,

    The issue you are experiencing may come from the fact that the control you have placed on the page cannot find its appropriate placeholder in the layout control it is dropped in. This causes the widgets in this layout control (in your case this might be the Download list) to be rebinded which would call the DataBind 2 times and receive the exception.

    What I can suggest is to go to the page template and remove the layout control where the widget is placed in and then also remove the widget and then add them again. This way the widget will inherit its placeholder and this should resolve the issue.

    Regards,
    Sabrie Nedzhip
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
4 posts, 0 answered