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

Could not load type 'Telerik.Windows.Controls.Selector' from assembly 'Telerik.Windows.Controls

5 Answers 116 Views
Telerik Minifier
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tina
Top achievements
Rank 1
Tina asked on 10 Dec 2011, 12:34 AM
I am trying to create a minimized version of Telerik.Windows.Controls.dll. I am using very few controls from the displayed list. But no matter what I select on the list - even if I select all the controls available - when I build my solution with minimized dll I get this error:

Could not load type 'Telerik.Windows.Controls.Selector' from assembly 'Telerik.Windows.Controls, Version=2011.2.712.1040, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'. D:\Tina\Desktop\DabDab\Tina_Dabdab\DabDab\DabDab.Core.UI\Attributes\AttributeView.xaml 1 1 DabDab.Core.UI

Unrelated question: I am not referencing Telerik.Windows.Data.dll anywhere directly in my solution, yet it gets added to the xap file. How can I find out why?

Thanks,
Justyna

5 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 14 Dec 2011, 02:56 PM
Hi Tina,

Basically the AssemblyMinifier tool extracts from the assemblies only those classes that are used in the selected RadControls's classes. The tool searches recursively through the main class that describes the selected RadControls and then though every other related to these controls class. This way a set of classes is extracted so that a minified assembly is created.

Therefore if the controls you selected during the minimization process don't use the Telerik.Windows.Controls.Selector class, its implementation will be stripped out of the Telerik.Windows.Controls minified assembly.  And if you want to include it in the assembly, you will need to check a control that uses the class. For example if you minify the Telerik.Windows.Controls.dll along with the Telerik.Windows.Controls.Navigation.dll and check the RadTabControl from the Navigation assembly, the Telerik.Windows.Controls.Selector class won't be stripped out from the Controls assembly.

However, there is a feature request in our PITS to implement a feature in the AssemblyMinifier to allow you to manually define which classes to include in the minified assembly. You can vote for the feature thus increasing its priority.

Ad for the other question, the xap file should include only assemblies required by your application and if the Telerik.Windows.Data.dll assembly is included in the XAP file, then it should be included as a referenced assembly somewhere in your solution.

Regards,
Tina Stancheva
the Telerik team

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

0
Tina
Top achievements
Rank 1
answered on 25 Dec 2011, 12:18 PM
I cannot get the minifier to work with more than one assembly at the time.
If I upload xap file it doesn't do anything for hours and hours. If I upload more than one dll (by clicking on Browse button and selecting many files with Ctr key) the list of controls to select never appears. I waited for an hour and nothing happened.
The only thing that works is when I select one dll at a time, but then there is no way to choose Telerik.Windows.Controls.Selector
because it is not on the list.
0
Petar Mladenov
Telerik team
answered on 28 Dec 2011, 04:59 PM
Hello Tina,

 We are aware that the XAP minifier hangs for bigger XAP files as described in this PITS item.
On the other hand, selecting multiple dlls also may lead to some time-out. Is there any other controls that you need to minify, we could try to minify them and send them to you? Unfortunately, the mentioned Selector cannot be minified.

All the best,
Petar Mladenov
the Telerik team

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

0
Tina
Top achievements
Rank 1
answered on 14 Jan 2012, 02:45 AM
We are using ScheduleView, TreeView and RadRichTextBox with Ribbon.

Thanks,
0
Petar Mladenov
Telerik team
answered on 18 Jan 2012, 01:36 PM
Hi Tina,

 We tried to minify these controls' dlls but their number is 7 and it appears that it's too big. Currently, we can mark this scenario as unsupported. Please excuse us for the caused inconvenience.  

Kind regards,
Petar Mladenov
the Telerik team

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

Tags
Telerik Minifier
Asked by
Tina
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Tina
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or