Custom List Form - Script controls may not be registered before PreRender

4 posts, 0 answers
  1. Kirsty
    Kirsty avatar
    7 posts
    Member since:
    Aug 2010

    Posted 19 Aug 2010 Link to this post

    Hi,

    We have just upgraded our version of RadEditor to 5.8.0.0 and are experiencing a problem with our custom list forms. We receive the following error when trying to open a custom list form: Script controls may not be registered before PreRender.

    If we change any multiple list fields to plain text, the problem disappears (as RadEditor is no longer functioning).

    We have searched the forums and tried a few things:

    1) We tried this - http://www.telerik.com/community/forums/sharepoint-2007/full-featured-editor/prerender-error-with-custom-list-form.aspx No luck. We ended up with this error:The control type 'System.Web.UI.ScriptManager' is not allowed on this page. The type is not registered as safe.

    2) We also tried this - http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html Again, no luck. <system.web.extensions> was not recognised and caused an error.

    Are you able to suggest what we could try next?

    Thanks, Kirsty
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 19 Aug 2010 Link to this post

    Hello Kirsty,

    Could you provide me with the web.config file of your MOSS site and the configuration files or RadEditor for MOSS, which are ConfigFile.xml, ToolsFile.xml, ListToolsFile.xml, ListConfigFile.xml. They are located in the
    /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder. I will use them to reproduce the issue on our test server and advice you further.

    Regards,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  3. Kirsty
    Kirsty avatar
    7 posts
    Member since:
    Aug 2010

    Posted 22 Aug 2010 Link to this post

    Hi Stanimir,

    ConfigFile.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <!-- ==============================================================================================
        Config File valid structure:
        <configuration>
        <property>...</property>
        ...
            <property>
                <item>...</item>
                <item>...</item>
                ...
            </property>
            ...
        </configuration>
    =============================================================================================== -->
    <configuration>
        <property name="ToolbarMode">ShowOnFocus</property>
        <property name="ToolsWidth">600px</property>
            <property name="AllowThumbGeneration">True</property>
            <!--<property name="ConvertToXhtml">True</property>-->
            <property name="EnableDocking">True</property>
            <property name="StripAbsoluteAnchorPaths">False</property>
            <property name="StripAbsoluteImagesPaths">False</property>
            <property name="Skin">Outlook</property>
            <property name="CssFiles">
                  <item>/_wpresources/RadEditorSharePoint/5.8.0.0__1f131a624888eeed/Resources/CssEditor.css</item>
        </property>
            <property name="NewLineBr">False</property>
            <property name="SpellDictionaryLanguage">en-AU</property>
            <property name="StripFormattingOnPaste">MSWordRemoveAll,Span,Font</property>
            <property name="ImagesPaths">     
                  <item>PublishingImages</item>  
            </property
            <property name="ExternalDialogsPath">/_wpresources/RadEditorSharePoint/5.8.0.0__1f131a624888eeed/Resources/EditorDialogs</property>
            <property name="MaxImageSize">76800</property>
            <property name="ImagesFilters">
                 <item>*.jpg</item>
                 <item>*.jpeg</item>
                 <item>*.gif</item>
                 <item>*.png</item>
            </property>
    </configuration>

    ListConfigFile.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <!-- ==============================================================================================
        Config File valid structure:
        <configuration>
        <property>...</property>
        ...
            <property>
                <item>...</item>
                <item>...</item>
                ...
            </property>
            ...
        </configuration>
    =============================================================================================== -->
    <configuration>
        <property name="EditModes">Design,Html</property>
        <property name="Height">240px</property>
        <property name="Width">600px</property>
        <property name="ToolbarMode">ShowOnFocus</property>
        <property name="ToolsWidth">600px</property>
            <property name="AllowThumbGeneration">True</property>
            <property name="ConvertToXhtml">True</property>
            <property name="EnableDocking">True</property>
            <property name="StripAbsoluteAnchorPaths">False</property>
            <property name="StripAbsoluteImagesPaths">False</property>
            <property name="Skin">Outlook</property>
            <property name="CssFiles">
                  <item>/_wpresources/RadEditorSharePoint/5.8.0.0__1f131a624888eeed/Resources/CssEditor.css</item>
        </property>
            <property name="NewLineBr">False</property>
            <property name="SpellDictionaryLanguage">en-AU</property>
            <property name="StripFormattingOnPaste">MSWordRemoveAll,Span,Font</property>
            <property name="ImagesPaths">     
                  <item>PublishingImages</item>  
            </property
            <property name="ExternalDialogsPath">/_wpresources/RadEditorSharePoint/5.8.0.0__1f131a624888eeed/Resources/EditorDialogs</property>
            <property name="MaxImageSize">76800</property>
            <property name="ImagesFilters">
                 <item>*.jpg</item>
                 <item>*.jpeg</item>
                 <item>*.gif</item>
                 <item>*.png</item>
            </property>
    </configuration>

    ListToolsFile.xml
    <root>
      <modules>
          <module name="RadEditorStatistics" dockingZone="Bottom" enabled="true" visible="true"  />
          <module name="RadEditorDomInspector" dockingZone="Module" enabled="true" visible="false"  />
          <module name="RadEditorNodeInspector" dockingZone="Module" enabled="true" visible="false"  />
          <module name="RadEditorHtmlInspector" dockingZone="Module" enabled="true" visible="false"  />
      </modules>
      <tools name="EnhancedToolbar" dockable="true" enabled="true">
        <tool name="InsertTable" shortcut="CTRL+T" />
        <tool name="SetTableProperties" />
        <tool name="ImageManager" shortcut="CTRL+G" />
        <tool name="ImageMapDialog" />
        <tool name="LinkManager" shortcut="CTRL+K" />
        <tool name="Unlink" shortcut="CTRL+SHIFT+K" />
      </tools>
      <tools name="BasicToolbar" enabled="true">
        <tool name="AjaxSpellCheck" shortcut="F7"/>
        <tool name="FindAndReplace" shortcut="CTRL+F" />
        <tool name="Print" shortcut="CTRL+P" />
        <tool separator="true" />
        <tool name="SelectAll" shortcut="CTRL+A" />
        <tool name="Cut" shortcut="CTRL+X" />
        <tool name="Copy" shortcut="CTRL+C" />
        <tool name="Paste" />
        <tool name="PasteFromWordNoFontsNoSizes" shortcut="CTRL+V" />
        <tool separator="true" />
        <tool name="Undo" shortcut="CTRL+Z" />
        <tool name="Redo" shortcut="CTRL+Y" />
        <tool separator="true" />
        <tool name="FormatStripper" />
      </tools>
      <tools name="BasicToolbar2">
        <tool name="ApplyClass" />
        <tool name="FormatBlock" />
        <tool name="Superscript" />
        <tool name="Subscript" />
        <tool separator="true" />
        <tool name="InsertHorizontalRule" />
        <tool name="InsertDate" />
        <tool name="InsertTime" />
        <tool name="InsertSymbol" />
        <tool separator="true" />
        <tool name="InsertOrderedList" />
        <tool name="InsertUnorderedList" />
        <tool separator="true" />
        <tool name="Indent" />
        <tool name="Outdent" />
      </tools>
      <tools name="MossTools3" dockable="true" visible="true" enabled="true">
        <tool name="ModuleManager" />   
      </tools>
        
        
    <paragraphs>
             <paragraph name="<H1>Heading 1</H1>" value="<H1>" />
             <paragraph name="<H2>Heading 2</H2>" value="<H2>" />
             <paragraph name="<H3>Heading 3</H3>" value="<H3>" />
             <paragraph name="<H4>Heading 4</H4>" value="<H4>" />
             <paragraph name="<H5>Heading 5</H5>" value="<H5>" />
             <paragraph name="<H6>Heading 6</H6>" value="<H6>" />
             <paragraph name="<p>Normal</p>" value="<p>" />
       </paragraphs>
      
    <contextMenus>
        <contextMenu forElement="*">
          <tool name="Cut"/>
          <tool name="Copy"/>
          <tool name="Paste"/>
          <tool name="LinkManager"/>
        </contextMenu>
      </contextMenus>
    </root>

    ToolsFile.xml
    <root>
      <modules>
          <module name="RadEditorStatistics" dockingZone="Bottom" enabled="true" visible="true"  />
          <module name="RadEditorDomInspector" dockingZone="Module" enabled="true" visible="false"  />
          <module name="RadEditorNodeInspector" dockingZone="Module" enabled="true" visible="false"  />
          <module name="RadEditorHtmlInspector" dockingZone="Module" enabled="true" visible="false"  />
      </modules>
        
    <tools name="MainToolbar" enabled="true">
        <tool name="AjaxSpellCheck" shortcut="F7" />
        <tool name="FindAndReplace" shortcut="CTRL+F" />
        <tool name="Print" shortcut="CTRL+P" />
        <tool separator="true" />
        <tool name="SelectAll" shortcut="CTRL+A" />
        <tool name="Cut" shortcut="CTRL+X" />
        <tool name="Copy" shortcut="CTRL+C" />
        <tool name="Paste" />
        <tool name="PasteFromWordNoFontsNoSizes" shortcut="CTRL+V" />
        <tool separator="true" />
        <tool name="Undo" shortcut="CTRL+Z" />
        <tool name="Redo" shortcut="CTRL+Y" />
        <tool separator="true" />
        <tool name="LinkManager" shortcut="CTRL+K" />
        <tool name="Unlink" shortcut="CTRL+SHIFT+K" />
        <tool name="ImageManager" shortcut="CTRL+G" />
        <tool name="ImageMapDialog" />
        <tool separator="true" />
        <tool name="InsertTable" shortcut="CTRL+T" />
        <tool name="SetTableProperties" />
        <tool separator="true" />
        <tool name="FormatStripper" />
      </tools>
      <tools name="MossTools2">
        <tool name="ApplyClass" />
        <tool name="FormatBlock" />
        <tool name="Superscript" />
        <tool name="Subscript" />
        <tool separator="true" />
        <tool name="InsertHorizontalRule" />
        <tool name="InsertDate" />
        <tool name="InsertTime" />
        <tool name="InsertSymbol" />
        <tool separator="true" />
        <tool name="InsertOrderedList" />
        <tool name="InsertUnorderedList" />
        <tool separator="true" />
        <tool name="Indent" />
        <tool name="Outdent" />
      </tools>
      <tools name="MossTools3" dockable="true" visible="true" enabled="true">
        <tool name="ModuleManager" />   
      </tools>
        
        
    <paragraphs>
             <paragraph name="<H1>Heading 1</H1>" value="<H1>" />
             <paragraph name="<H2>Heading 2</H2>" value="<H2>" />
             <paragraph name="<H3>Heading 3</H3>" value="<H3>" />
             <paragraph name="<H4>Heading 4</H4>" value="<H4>" />
             <paragraph name="<H5>Heading 5</H5>" value="<H5>" />
             <paragraph name="<H6>Heading 6</H6>" value="<H6>" />
             <paragraph name="<p>Normal</p>" value="<p>" />
       </paragraphs>
      
    <contextMenus>
        <contextMenu forElement="*">
          <tool name="Cut"/>
          <tool name="Copy"/>
          <tool name="Paste"/>
          <tool name="LinkManager"/>
        </contextMenu>
      </contextMenus>
    </root>

    We are also getting the following error in our IIS logs:
    • Load control template file /_controltemplates/RadEditorList.ascx failed: Unknown server tag 'telerik:RadHtmlListField'.

    Thanks, Kirsty

     

  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 24 Aug 2010 Link to this post

    Hi Kirsty,

    I reviewed the provided files and they are causing no problems. I used the following setting of the paragraphs collection.
    <paragraphs>
            <paragraph name="&lt;H1>Heading 1&lt;/H1>" value="&lt;H1>" />
            <paragraph name="&lt;H2>Heading 2&lt;/H2>" value="&lt;H2>" />
            <paragraph name="&lt;H3>Heading 3&lt;/H3>" value="&lt;H3>" />
            <paragraph name="&lt;H4>Heading 4&lt;/H4>" value="&lt;H4>" />
            <paragraph name="&lt;H5>Heading 5&lt;/H5>" value="&lt;H5>" />
            <paragraph name="&lt;H6>Heading 6&lt;/H6>" value="&lt;H6>" />
            <paragraph name="&lt;p>Normal&lt;/p>" value="&lt;p>" />
    </paragraphs>

    Here is what I suggest you to do.

    1. Disable all the RadEditor for features. These are "Use RadEditor to edit List Items"  and "Use RadEditor to edit Html Fields". (Using RadEditor in List Items).
    2. Uninstall RadEditor for MOSS: http://www.telerik.com/help/aspnet-ajax/uninstalling-radeditor.html.
    3. Make sure that you correctly extend your MOSS site with ASP.NET AJAX:
    Extending your MOSS site with Microsoft ASP.NET AJAX 1.0
    Extending your MOSS site with Microsoft ASP.NET AJAX 3.5
    4. Make sure that you correctly upgrade your version of the control:
    Upgrade Instructions from version 4.x to version 5.x
    Upgrading to a newer version of RadEditor for MOSS
    6. Enable the features form step 1.
    7. Execute an iisreset command.

    If you still experience the problem check if adding a ScriptManager control to the master.page of your layout will solve the issue. Then provide me with the web.config file of your MOSS site. Most likely it is located in the \Inetpub\wwwroot\wss\VirtualDirectories\80 folder of your server. I will review the file and advise you further.


    Regards,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top