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

Forums / Developing with Sitefinity / aspcompat=true

aspcompat=true

4 posts, 0 answered
  1. viscious
    viscious avatar
    31 posts
    Registered:
    10 Aug 2006
    16 Jan 2008
    Link to this post
    hello.  I have a site that uses an old com component.  In order for this component to work, I have to have aspcompat=true in the page directive.   I tried to add aspcompat=true in /sitefinity/cmsstartup.aspx

    This fixed that problem, but it creates another problem.  Now I get an error saying that RegisterRequiresControlState can only be called durring or before preRender.

    There is not a lot of custom code in this site, and I do not know of any of it that is using ControlState and I have not made any calls to RegisterRequiresControlState in my code.

    I only get that error if aspcompat=true on the /sitefintiy/cmsstartup.aspx file, but I need to have that attribute in there.

    any ideas?
  2. Vlad
    Vlad avatar
    498 posts
    Registered:
    19 Jun 2017
    17 Jan 2008
    Link to this post
    Hello Erick,

    Actually, ~/sitefinity/cmsstartup.aspx page displays the StartUp Wizard and it loads only the first time after the project is created. Do you mean ~/sitefinity/cmsentrypoint.aspx?
    OK, we tried setting AspCompat=True attribute in the ~/sitefinity/cmsentrypoint.aspx,
    but didn't get an error saying that RegisterRequiresControlState can only be called during or before PreRender. Actually, this error was reported some time ago, but seems it appears accidentally, so we cannot reproduce it locally to find out what is causing it.
    If you provide more detailed information about the steps we need to follow to reproduce this error, we will appreciate it very much. What else are you doing except setting
    AspCompat=True?

    Thank you for the cooperation.

    Best wishes,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. viscious
    viscious avatar
    31 posts
    Registered:
    10 Aug 2006
    17 Jan 2008
    Link to this post
    yes i did mean cmsentrypoint :)

    This site originally started out on sitefinity 3.0, and back then this problem seemed to only occur at random, but over time it has been updated for more recent service packs, and now i get the problem every time.

    If you like, I can zip up the solution/database and send it to you so you can try to reproduce the error.

    However when i did this on my own machine, the error did not occur.  It seems to occur only in the production server.


  4. Vlad
    Vlad avatar
    498 posts
    Registered:
    19 Jun 2017
    18 Jan 2008
    Link to this post
    Hi Erick,

    This error was reported before. We are investigating it, but since we cannot reproduce it locally, we still have not found out what is causing it. However, I don't think it is related to 'AspCompat=true'.

    Kind regards,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
4 posts, 0 answered