TxtDataProvider exists in Both Telerik.Windows.Controls.RichTextBox and Telerik.Windows.Documents

1 Answer 286 Views
TextBox
bruno
Top achievements
Rank 1
bruno asked on 07 Mar 2022, 06:52 PM

Good Afternoon,

ive been doing some work on upgrading to .net6 and have run into some telerik issues.

From my understanding Telerik.Windows.Controls.RichTextBox doesn't even exist anymore, nor is it installed anywhere in my solution. The closet thing to it is Telerik.Windows.Controls.RichTextBoxUI.

After i import telerik into my xaml file via 

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

i receive errors stating
```


Error CS0433 The type 'RadRichTextBox' exists in both 'Telerik.Windows.Controls.RichTextBox, Version=2021.3.1109.60, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' and 'Telerik.Windows.Documents, Version=2021.3.1109.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7''


```

I'm not even sure were to look or what to try, as I've checked to make sure its not installed anywhere, triple checked, and also have deleted bin and obj folders tried to do a clean rebuild build. i don't even understand how it can think about wanting something from a package that isn't even installed

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 10 Mar 2022, 01:16 PM

Hello Bruno,

We did some changes in our .NET Core 3.0 version is regards to RadRichTextBox's packaging, which are also applied to the newer versions - .NET 5, .NET 6 and the future versions of the framewrok. The old packaging model is unchanged for the old .NET Framework versions. The changes are as it follows: 

Telerik.Windows.Controls.RichTextBox.dll is now added

Telerik.Windows.Documents.dll, Telerik.Windows.Documents.*FormatProvider, and Telerik.Windows.Controls.RichTextBoxUI are removed.

The new assembly matches the old ones in terms of content, making the load times more robust, as it no longer depends on MEF model.

As far as I can see, you have a project that refers both to 2021.3.1109.45 (a .NET Framework 4.5 version) and 2021.3.1109.60 (a .NET 6 version), causing a collision as RadRichTextBox is both present in Telerik.Windows.Documents.dll and Telerik.Windows.Controls.RichTextBox. For the .NET 6 version of your application, you need only the Telerik.Windows.Controls.RichTextBox.dll assembly. For any .NET Framework version (before .NET Core), the set of removed assemblies is needed. Also, please make sure that the .NET 6 project only refers to assemblies that end with .60 in the version. Our versioning notation is as it follows:

.60 for . NET6; .50 for .NET 5; .45 for .NET Framework 4.5 and newer (but before Core), .40 for .NET Framework 4.0, .300 for .NET Core 3.0.

Please let me know if the issue still persists on your side.

Regards,
Ivan Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
TextBox
Asked by
bruno
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or