value cannot be null

2 posts, 0 answers
  1. Simo
    Simo avatar
    1 posts
    Member since:
    Dec 2008

    Posted 03 Dec 2008 Link to this post

    Hi,

    We are using version 4.5.4.0 for MOSS and just activated rad editor for list items. Now few list(not all) are giving error message:

    Value cannot be null.
    Parameter name: value

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentNullException: Value cannot be null.
    Parameter name: value

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

     

    [ArgumentNullException: Value cannot be null.

    Parameter name: value]

       System.Collections.CollectionBase.OnValidate(Object value) +3635966

       Telerik.WebControls.RadEditorUtils.ToolbarCollection.OnValidate(Object value) +17

       System.Collections.CollectionBase.System.Collections.IList.Remove(Object value) +54

       Telerik.WebControls.RadEditorUtils.ToolbarCollection.Remove(Toolbar toolbar) +29

       Telerik.SharePoint.ListFieldEditor.RadHtmlListField.OnLoad(EventArgs e) +535

       System.Web.UI.Control.LoadRecursive() +66

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2604

     


    If I change back to normal editor, everything works fine.

    Br,

    Simo
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 05 Dec 2008 Link to this post

    Hello Simo,

    Your custom list is probably using a basic html editor. In this case, the RadEditor tries to remove the second toolbar, called EnhancedToolbar, because these tools are not used in basic mode. You probably modified the default list tools file (ListToolsFile.xml) and removed the enhanced toolbar. When the editor tries to remove it now, you get the above error, because it does not exist.  Make sure that you have a toolbar called EnhancedToolbar in your list tools file:

    <tools name="EnhancedToolbar">
    </tools>

    I hope this helps.



    Greetings,
    Stanimir
    the Telerik team

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

Back to Top