TreeView Control Assembly Error

4 posts, 0 answers
  1. Noushad
    Noushad avatar
    10 posts
    Member since:
    Feb 2009

    Posted 01 Apr 2011 Link to this post

    I get the following error at runtime
    Cannot find type 'Telerik.Windows.Controls.RadTreeView'. The assembly used when compiling might be different than that used when loading and the type is missing.  Error at object 'System.Windows.Controls.Grid' in markup file

    I am using the following Telerik dlls which I have added to my project references
    Telerik.Windows.Controls - 2010.3.1110.35
    Telerik.Windows.Controls.Data - 2010.3.1110.35
    Telerik.Windows.Controls.Navigation - 2010.3.1110.35

    Format Code Block(

     

     

    <

     

    UserControl x:Class="AOS.UI.Windows.Controls.Widget.acWidgets"

     

     

     

     

     

     

     

     

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

     

     

     

     

     

     

     

     

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

     

     

     

    xmlns:VMCommanding="clr-namespace:VMCommanding"

     

     

     

     

     

     

     

     

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

     

     

     

    xmlns:vm="clr-namespace:AOS.UI.Windows.Controls.Widget.ViewModel"

     

     

     

     

     

     

     

     

    Height="300" Width="300"

     

     

     

    xmlns:Core="clr-namespace:AOS.UI.Windows.Controls.Core;assembly=AOS.UI.Windows.Controls.Core"

     

     

     

     

     

     

     

     

    VMCommanding:CommandSinkBinding.CommandSink="{Binding}">

     

     

     

     

     

     

    <UserControl.CommandBindings>

     

     

     

     

     

     

     

     

     

    <VMCommanding:CommandSinkBinding Command="vm:WidgetViewModel.NavigateItemCommand" />

     

     

     

     

     

     

     

     

     

    </UserControl.CommandBindings>

     

     

     

     

     

     

     

     

     

     

     

    <UserControl.Resources>

     

     

     

     

     

     

     

     

     

    <HierarchicalDataTemplate x:Key="NavigationTemplate"

     

     

     

    ItemsSource="{Binding Path=WidgetList}">

     

     

     

     

     

     

     

     

     

    <Grid Margin="1">

     

     

     

     

     

     

     

     

     

    <Grid.ColumnDefinitions>

     

     

     

     

     

     

     

     

     

    <ColumnDefinition Width="16" />

     

     

     

     

     

     

     

     

     

    <ColumnDefinition Width="*" />

     

     

     

     

     

     

     

     

     

    </Grid.ColumnDefinitions>

     

     

     

     

     

     

     

     

     

    <Image Grid.Column="0" Source="{Binding Path=Icon_Name}"></Image>

     

     

     

     

     

     

     

     

     

    <Core:CommandTextBlock Grid.Column="1" Margin="1"

     

     

     

    Text="{Binding Path=Description}"

     

     

     

     

     

     

     

     

    Command="vm:WidgetViewModel.NavigateItemCommand"

     

     

     

    CommandParameter="{Binding}"/>

     

     

     

     

     

     

     

     

     

     

     

    </Grid>

     

     

     

     

     

     

     

     

     

    </HierarchicalDataTemplate>

     

     

     

     

     

     

     

     

     

    </UserControl.Resources>

     

     

     

     

     

     

     

     

     

    <Grid>

     

     

     

     

     

     

     

     

     

    <Grid.RowDefinitions>

     

     

     

     

     

     

     

     

     

    <RowDefinition Height="55" />

     

     

     

     

     

     

     

     

     

    <RowDefinition Height="*" />

     

     

     

     

     

     

     

     

     

    <RowDefinition Height="30" />

     

     

     

     

     

     

     

     

     

    </Grid.RowDefinitions>

     

     

     

     

     

     

     

     

     

     

     

    <telerik:RadTreeView Grid.Row="2" ItemsSource="{Binding WidgetList}" ItemTemplate="{StaticResource NavigationTemplate}" />

     

     

     

     

     

     

     

     

     

     

     

    </Grid>

     

     

     

     

     

     

     

    </

     

    UserControl>

     

    )
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 05 Apr 2011 Link to this post

    Hello Noushad,

    We are unable to reproduce this issue in our environment. Could you please try to clean and rebuild you application, make sure that the target framework is 3.5? If the problem still exist, it would be better if you can send us a runnable sample so that we could investigate in depth and advice you better. thank you for your cooperation.

    Kind regards,
    Petar Mladenov
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Noushad
    Noushad avatar
    10 posts
    Member since:
    Feb 2009

    Posted 05 Apr 2011 Link to this post

    Hi

    It seems that the issue is not exclusive to the Telerik controls alone.  I have built a test solution with test projects and the Telerik Tree view control seems to work fine.  However I noticed that other enhanced controls that we have built also give a very similar error "The assembly used when compiling might be different than that used when loading and the type is missing"

    I may send you guys some sample code if I'm still struggling to get it to work.  I have also noticed that when I try and view the properties of the project, the entire solution closes down.  This only happens with specific projects.  I am running VS 2008 SP1.

    Thanks for your help.
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 05 Apr 2011 Link to this post

    Hi Noushad,

    We are looking forward to receiving a project from you reproducing this strange issue.This will be the best way to continue our investigation. Thank you for your cooperation.

    Best wishes,
    Petar Mladenov
    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
Back to Top