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

RadRichTextBox error

4 Answers 239 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 26 Apr 2011, 01:08 AM
Good evening,

I'm keep getting the following error whilst trying to use the WPF RadRichTextBox in the "Word Processing" configuration in VS2010 VB.net 4. It's the latest WPF tools (version 0419).
I dragged and dropped the RichTextBox into my designer window grid and then followed the step by step process. All works and looks fine until I run the app in debug mode.

FileNotFoundException was unhandled
Could not load file or assembly 'System.ComponentModel.Composition, Version=2009.7.8.0, Culture=neutral, PublicKeyToken=13e5ffd4e05db186' or one of its dependencies. The system cannot find the file specified.


System.Windows.Data Error: 40 : BindingExpression path error: 'CaptionButtonsReservedWidth' property not found on 'object' ''MainWindow' (Name='')'. BindingExpression:Path=CaptionButtonsReservedWidth; DataItem='MainWindow' (Name=''); target element is 'ContentControl' (Name='windowButtonPlaceHolder'); target property is 'Width' (type 'Double')

A first chance exception of type 'System.IO.FileNotFoundException' occurred in Telerik.Windows.Documents.dll

 

When the app runs a dialog window opens trying to find a RadDictionary.cs file.

I have uninstalled and re-installed the Telerik WPF tools and it hasn't solved the problem.

It did originally work but now for some reason it doesn't anymore.

Thank you for your time,

Rob

4 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 26 Apr 2011, 01:13 AM
well I've discovered it works fine for a .net 3.5 app and not in a .net 4 app in VS2010. I still get the exception error but the app still runs.
0
Robert
Top achievements
Rank 1
answered on 26 Apr 2011, 06:53 PM
The problem seems to have now gone for a .net 4 app. I'm not really sure what happened. Maybe I just rebooted my machine and now it works.
0
Robert
Top achievements
Rank 1
answered on 15 Jul 2011, 10:38 PM
I have exactly the same problem. Any ideas what may have solved it?

Thanks.
0
Iva Toteva
Telerik team
answered on 20 Jul 2011, 12:19 PM
Hi Robert,

The System.ComponentModel.Composition.dll of version 2009.7.8 is released with the WPF 3.5 version of the controls, because in .NET framework 3.5 there is no System.ComponentModel.Composition assembly. As RadRichTextBox uses MEF for loading the pop-ups that it uses, the format providers and the dictionaries for spell-checking, we had to implement an equivalent for WPF 3.5. You can find the assembly in the Binaries folder where you have installed/extracted the other dlls.
If your project targets .NET framework 4.0, you should be using the dlls built for WPF4 and adding a reference to this Composition assembly would not be required. There are separate zips with hotfix dlls and installers for WPF 3.5 and WPF 4, which you can download from your account. Most probably, some of the referenced assemblies in your project were built for WPF 3.5. Re-referencing all required assemblies (as listed here) from the right folder must solve the issue.

Best wishes,
Iva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
RichTextBox
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Iva Toteva
Telerik team
Share this question
or