error trying to add richtexteditor control

3 posts, 0 answers
  1. Jeff
    Jeff avatar
    2 posts
    Member since:
    Jul 2011

    Posted 27 Dec 2011 Link to this post


    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 ''

    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. Jeff
    Jeff avatar
    2 posts
    Member since:
    Jul 2011

    Posted 27 Dec 2011 Link to this post

    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.
  3. Vasil
    Vasil avatar
    124 posts

    Posted 30 Dec 2011 Link to this post

    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,
    the Telerik team

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

Back to Top