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

Thread is closed for posting
6 posts, 0 answers
  1. Tina
    Tina avatar
    17 posts
    Member since:
    May 2011

    Posted 09 Dec 2011 Link to this post

    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
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 14 Dec 2011 Link to this post

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

  3. DevCraft banner
  4. Tina
    Tina avatar
    17 posts
    Member since:
    May 2011

    Posted 25 Dec 2011 Link to this post

    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.
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 28 Dec 2011 Link to this post

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

  6. Tina
    Tina avatar
    17 posts
    Member since:
    May 2011

    Posted 13 Jan 2012 Link to this post

    We are using ScheduleView, TreeView and RadRichTextBox with Ribbon.

    Thanks,
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 18 Jan 2012 Link to this post

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

Back to Top
DevCraft banner