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

value cannot be null

1 Answer 102 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Simo
Top achievements
Rank 1
Simo asked on 03 Dec 2008, 09:01 AM
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

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 05 Dec 2008, 05:04 PM
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.
Tags
WebParts for SharePoint
Asked by
Simo
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or