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

TreeView Control Assembly Error

3 Answers 65 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Noushad
Top achievements
Rank 1
Noushad asked on 01 Apr 2011, 10:02 AM
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>

 

)

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 05 Apr 2011, 04:02 PM
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
0
Noushad
Top achievements
Rank 1
answered on 05 Apr 2011, 04:13 PM
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.
0
Petar Mladenov
Telerik team
answered on 05 Apr 2011, 04:52 PM
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
Tags
TreeView
Asked by
Noushad
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Noushad
Top achievements
Rank 1
Share this question
or