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

error trying to add richtexteditor control

2 Answers 141 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 27 Dec 2011, 08:43 PM
Hello,

We are currently evaluating control packages for our in-house silverlight development. I went through the install of  the Telerik Silverlight controls, and all that seemed to go well.

I tried to start a new Silverlight Navigation project in visual studio, and then drag and drop a rich text editor control from the toolbox. Doing nothing else I wanted to run the silverlight app in debug. I am getting errors on the richtextbox, the weird thing is that it's not getting caught by my code, but IE is catching it with the JIT debugger. I've attached what it gives me as an image.

Something about the type initializer for 'telerik.windows.documents.ui.extensibility.RadCompositionInitializer'

Seems weird that these controls should work when just doing a simple test like this. Am I doing something wrong?

I should mention that we're doing this development using SL 5

2 Answers, 1 is accepted

Sort by
0
Jeff
Top achievements
Rank 1
answered on 27 Dec 2011, 09:08 PM
Okay, I tried to select a different option in the wizard, and went through the wizard for just the word processor.

Now getting this error.

The invocation of the constructor on type 'Telerik.Windows.Controls.RichTextBoxUI.StylesGallery' that matches the specified binding constraints threw an exception. [Line: 328 Position: 70]

I seen that some would get these errors on different controls because they would forget to add <param name="windowless" value="true" />

I've added that and this error still comes up.
0
Vasil
Telerik team
answered on 30 Dec 2011, 09:35 AM
Hi Jeff,

Please verify that references to System.ComponentModel.Composition and System.Windows.Data are added. Another option is to use our native Silverlight 5 binaries (download from your account here). Setting 'windowless' parameter is not needed.

I hope this information helps. Let us know if we can help further.

All the best,
Vasil
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Jeff
Top achievements
Rank 1
Answers by
Jeff
Top achievements
Rank 1
Vasil
Telerik team
Share this question
or