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

Question about use of System.ComponentModel.Composition.dll

4 Answers 209 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Carles
Top achievements
Rank 1
Carles asked on 15 Jun 2011, 10:36 AM
Hi,

I started using the RichTextBox component in our WPF Application and I found an issue regarding the version of the System.ComponentModel.Composition.dll which is being used by the control.

If I use the one that comes inside the Q1 2011 binaries package(version 2009.7.8), the control works fine. The problem is that I'm already using the same dll provided by .NET Framework 4.0(version 4.0.30319.1) in my project which produces a crash regarding wrong dll version when the control tries to load.

Which is the reason why the control is using this "personalized" dll? I see that the size of both dll is different too so I assume that the one that comes with the controls has some modifications. Do I have any workaround to deal with this issue??

Hope you can help me with this problem.

Thanks and Regards,

Carles

4 Answers, 1 is accepted

Sort by
0
Accepted
Iva Toteva
Telerik team
answered on 16 Jun 2011, 04:31 PM
Hi Carles,

The System.ComponentModel.Composition.dll of version 2009.7.8 is released with the WPF 3.5 version of the controls, as in .NET framework 3.5 there is no System.ComponentModel.Composition assembly. As RadRichTextBox uses MEF for loading the pop-ups that it uses and format providers, we had to implement an equivalent for WPF 3.5.
If your project targets .NET framework 4.0, you should be using the dlls that have been built for WPF 4 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.

Regards,
Iva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Carles
Top achievements
Rank 1
answered on 20 Jun 2011, 12:16 PM
Hi Iva,

Thanks for the answer. That solved my problem.

Regards,

Carles
0
Gomathi
Top achievements
Rank 1
answered on 22 Jun 2011, 05:27 AM
Hi,
    I am using .net frame work 3.5.I have tried to include System.ComponentModel.Composition.dll from
MEF_Preview_6 2009.7.8.0 (Final)  2009, Aug 28(http://labs.ashmind.com/reuse/library/system.componentmodel.composition).
While including dll i am getting error as "You cannot add a reference to System.ComponentModel.Composition.dll as it was not build runtime.Silverlight Projects will only work with Silverlight assemblish"
0
Andrew
Telerik team
answered on 24 Jun 2011, 12:01 PM
Hi Gomathi,

This usually happens when you are trying to add an assembly built against the .NET framework runtime to a Silverlight project. Try using the the assembly with the same name built for Silverlight.

All the best,
Andrew
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Carles
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Carles
Top achievements
Rank 1
Gomathi
Top achievements
Rank 1
Andrew
Telerik team
Share this question
or