This is a migrated thread and some comments may be shown as answers.

Argument NULL EXCEPTION

2 Answers 115 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 06 Sep 2007, 06:17 PM
This error just started happening to one of our Custom Lists.  Whenever you try to create a new item (or edit an existing), the following error occurs:

 
Server Error in '/' Application.
--------------------------------------------------------------------------------

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) +61
   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) +615
   System.Web.UI.Control.LoadRecursive() +101
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Control.LoadRecursive() +211
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2588

 
TOther lists (where the RADEditor) is used work fine.

2 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 07 Sep 2007, 08:12 AM
Hi Tom,

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>


All the best,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Tom
Top achievements
Rank 1
answered on 07 Sep 2007, 04:03 PM
Thanks, that solved the problem.

I just created an empty toolbar with this name.
Tags
WebParts for SharePoint
Asked by
Tom
Top achievements
Rank 1
Answers by
Lini
Telerik team
Tom
Top achievements
Rank 1
Share this question
or