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

Could not load assembly Telerik.Windows.Controls.Navigation

20 Answers 2025 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 18 Sep 2008, 12:02 AM
Hello,

I downloaded the trial version of RadControls for Silverlight and I'm having problems loading the assemblies. I extracted the downloaded contents to My Documents and added a reference to the DLLs, and got this error:

Could not load file or assembly 'Telerik.Windows.Controls.Navigation, Version=2008.2.826.0, Culture=neutral, PublicKeyToken=9c7324f9b8e4111a' or one of its dependencies. The system cannot find the file specified.

I tried copying the DLLs to my bin directory and resetting the references but still got the same error. Does anyone know what could be the cause of this problem?

Thanks,

Daniel

20 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 18 Sep 2008, 02:18 PM
Hello Daniel,

Is it possible that you missed to update some of the assemblies? Telerik.Windows.Controls.Navigation.dll references Telerik.Windows.Controls.dll and Telerik.Windows.Data.dll, and you need to ensure that all Telerik assemblies are with the same version.

All the best,
Valeri Hristov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Fukee
Top achievements
Rank 1
answered on 22 Dec 2008, 04:19 PM
Hello,

I have this exact same problem:

"Could not load file or assembly 'Telerik.Windows.Controls.Navigation, Version=2008.3.1217.1020, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified."

I downloaded the latest version and uninstalled/reinstalled what I was running from a few weeks ago to make sure.  I referenced the DLL's in the project that is using them - both Telerik.Windows.Controls and Telerik.Windows.Controls.Navigation.

Based on what you said above, I also went ahead and referenced Telerik.Windows.Data.dll, even though I'm not referencing or using it in the xaml.  Neither are you guys in your example xaml either though, so I don't think that's the issue.

If I type in the code-behind "using Telerik.Windows.Controls.Navigation" it doesn't see that.  It sees controls, and controls.common, .dragdrop, .primitives and .tabcontrol, but doesn't see Controls.Navigation in intellisense, even though it is clearly referenced in the project.

Any ideas?
0
Valeri Hristov
Telerik team
answered on 23 Dec 2008, 03:50 PM
Hi Fukee,

Could you please open a new support ticket and send us your test application? I think that this will be the fastest way to help you resolve the problem.

Regarding to the "Telerik.Windows.Controls.Navigation" namespace, we don't have such namespace. All controls from all assemblies are in Telerik.Windows.Controls, with small exceptions in other namespaces (such as Primitives), but everything you need should be in Telerik.Windows.Controls.

Regards,
Valeri Hristov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Fukee
Top achievements
Rank 1
answered on 23 Dec 2008, 06:05 PM
I'll submit a ticket.

However, I was referring to DLL's rather than namespaces in my last post. In your examples, you show the following ref in the xaml file:

xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"

Which telerik DLLs should be referenced in the project specifically to work with the Telerik treeview?  I have Telerik.Windows.Controls.dll and Telerik.Windows.Controls.Navigation.dll referenced, but the error would seem to indicate that there is some issue with it finding the second dll.  However, the error message might be misleading... it wouldn't be the first time I've encountered that in Silverlight so far.

"Could not load file or assembly 'Telerik.Windows.Controls.Navigation, Version=2008.3.1217.1020, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified."
0
Konstantin Petkov
Telerik team
answered on 26 Dec 2008, 08:15 AM
Hello Fukee,

The TreeView control is embedded into the Navigation assembly. I'm not sure what might be causing the error despite from the missing assemblies (which seem to be OK in your case) so I'll double Valeri asking you to submit a test project where the error can be reproduced. I'm sure we will find the reason for the error and get back to you with resolution.

Looking forward to hearing from you.

Greetings,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Stephen Austin
Top achievements
Rank 1
answered on 21 Jan 2009, 04:16 PM
Has there been any resolution to this issue? I'm facing the same thing right now, and I am sure that the assemblies all match.

TIA
0
Fukee
Top achievements
Rank 1
answered on 21 Jan 2009, 04:20 PM
My issue was that I was loading it in a module (using prism) and the reference dll needed to be added to the parent silverlight app, rather than just the module (child) silverlight app.  Once I added it in both places, it ran fine.  I'm not sure your situation though.
0
Stephen Austin
Top achievements
Rank 1
answered on 21 Jan 2009, 04:27 PM
hmm, thanks. I'm not doing anything sophisticated, I just created a WPF app, and tried to add the code. All of the references are intact, but it still throws the same error.
0
Combinations
Top achievements
Rank 1
answered on 15 Oct 2009, 07:04 AM
Thanks, this saved me some headache.
Also running Prism and couldn't get the app to run.
0
Henrique Duarte
Top achievements
Rank 1
Veteran
answered on 13 Jan 2010, 02:46 PM
Stephen,

Please take a look at this blog post.

After upgrading the controls with an Internal Builds I couldn't open the XAML file in Designer View anymore.
The problem was in ZIP file. I needed to unblock the ZIP first, and then copy the file.
This problems occured with me because I used the Windows Explorer to drag and drop the files.
Another solution is to use another program to extract the package, like 7-ZIP.

Hope it helps.
Regards,

Henrique

0
YYZRichard
Top achievements
Rank 2
answered on 28 Jan 2011, 01:14 AM
Thanks Fukee, I had the same problem (PRISM MVVM Pattern) and your sugestion fixed my problem.
0
Bart
Top achievements
Rank 1
answered on 16 Jun 2011, 11:11 AM
I was getting this after upgrading telerik assemblies.  Fixed the issue by removing xmlns from the xaml file headers and refreshed the xmlns references to the telerik assemblies

The build exception I was getting: 

'Cannot resolve dependency to assembly 'Telerik.Windows.Data, Version=2011.1.419.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' 
because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the 
ReflectionOnlyAssemblyResolve event. Line 77 Position 54.

after upgrading the assemblies to Q1 2011:
0
Joe
Top achievements
Rank 1
answered on 06 Jul 2011, 03:22 PM
I hope someone can help me.
I paste the code from the Telerik demos into my own project and it builds but will not run.
I have fully licensed Telerik for WPF, Silverlight, Windows 7, VS2010, .NET 4 Client Profile.
I cannot use the RadSplitButton, the RadGridView in WPF solutions!
The demosinclude this in XAML:
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
I have added every single project reference that the demo includes, but still I get a run time error.
Could not load file or assembly 'Telerik.Windows.Controls, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.
What is going on? The following code builds but will not run.
I seem to run into this for multiple Telerik controls.  Please help me learn how to make use of Telerik controls.
Thanks, Joe
<UserControl
  x:Class="Pods.OrderEntry.Common.Controls.PodsPropertyEditorView"
  mc:Ignorable="d" d:DesignHeight="30" d:DesignWidth="500"
  xmlns:vm="clr-namespace:Pods.OrderEntry.Common.Controls"
  DataContext="{x:Type vm:PodsPropertyEditorViewModel}"
  ContentControl.FontFamily="Arial" 
  ContentControl.FontSize="10" 
  Background="Transparent"
>
  <!--xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"-->
  <UserControl.Resources>
  </UserControl.Resources>
  <Grid>
    <StackPanel Orientation="Horizontal" Height="22" >
      <!--Telerik.Windows.Controls-->
      <telerik:RadSplitButton Content="{Binding Path=ActionButtonContent, Mode=OneTime}" 
        Margin="0,0,2,0" Width="110" 
        Command="{Binding Path=ActionButtonCommand}" 
        IsEnabled="{Binding Path=ActionButtonCommand.CanExecute, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}">
        <telerik:RadSplitButton.DropDownContent>
          <ListBox Name="ItemsListBox" Width="185" >
            <ListBoxItem >
              <ListBoxItem.Content>
                <StackPanel Orientation="Horizontal">
                  <TextBlock Text="Master Card" Margin="5 0 0 0" VerticalAlignment="Center" />
                </StackPanel>
              </ListBoxItem.Content>
            </ListBoxItem>
            <ListBoxItem>
              <ListBoxItem.Content>
                <StackPanel Orientation="Horizontal">
                  <TextBlock Text="VISA" Margin="5 0 0 0" VerticalAlignment="Center" />
                </StackPanel>
              </ListBoxItem.Content>
            </ListBoxItem>
          </ListBox>
        </telerik:RadSplitButton.DropDownContent>
        <!--System.Windows.Interactivity-->
        <i:Interaction.Triggers>
          <i:EventTrigger EventName="SelectionChanged">
            <i:InvokeCommandAction Command="{Binding ListBoxSelectionChangeCommand}" 
                CommandParameter="{Binding ElementName=ItemsListBox, Path=SelectedItem}"/>
          </i:EventTrigger>
        </i:Interaction.Triggers>
      </telerik:RadSplitButton>
      <Border BorderThickness="1" BorderBrush="DarkGray" Margin="0,2" >
        <TextBlock Text="{Binding Path=Payload, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
          Width="300" VerticalAlignment="Center" />
      </Border>
      <CheckBox Content="{Binding Path=PrimaryPropertyCheckBoxContent, Mode=OneTime, FallbackValue='Primary', TargetNullValue='Primary'}"
        ToolTip="{Binding Path=PrimaryPropertyCheckBoxContentToolTip, Mode=OneTime, FallbackValue='', TargetNullValue=''}" 
        IsChecked="{Binding Path=PrimaryPropertyCheckBoxValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
        VerticalAlignment="Center" Margin="2,0,2,0" />
      <Button Width="13" Height="13" Margin="2,0,2,0" 
        ToolTip="{Binding Path=DeleteButtonToolTip, Mode=OneTime, FallbackValue='', TargetNullValue=''}" >
        <Button.Background>
          <ImageBrush ImageSource="{Binding Path=DeletePropertyImagePath, Mode=OneTime}" />
        </Button.Background>
      </Button>
    </StackPanel>
  </Grid>
</UserControl>
0
Vlad
Telerik team
answered on 06 Jul 2011, 03:25 PM
Hi,

 I've checked your account however didn't noticed any downloads. Can you clarify what version of our components you are using?

Kind regards,
Vlad
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Joe
Top achievements
Rank 1
answered on 06 Jul 2011, 05:12 PM
I just uninstalled Telerik, deleted the Telerik directory, restarted Windows7 and reinstalled Telerik.
I still have the same problem!
Could not load file or assembly 'Telerik.Windows.Controls, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.
Joe
0
Joe
Top achievements
Rank 1
answered on 06 Jul 2011, 05:16 PM
Thanks Vlad.
I am on a team, from PODS in Clearwater Florida.  My teammate downloaded the Telerik WPF install and shared it.  I had no reason to download it myself.
We are using version is RadControls_for_WPF_35_2011_1_0419_Dev.msi

I just uninstalled Telerik, deleted the Telerik directory, restarted Windows7 and reinstalled Telerik.
I still have the same problem!
Could not load file or assembly 'Telerik.Windows.Controls, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.
I'm gonna have to get a support ticket opened.  I cannot get my work done!

Joe
0
Joe
Top achievements
Rank 1
answered on 06 Jul 2011, 08:20 PM

I have resolved my problem.

 

I added a Telerik RadSplitButton to a UserControl.  When I added the UserControl to another UserControl, or a Window, it compiled but did not run.  It turns out that dragging a Telerik control on my UserControl automatically added Visual Studio Project References that are helpful but hid the details from me.  Once I determined the Telerik automatic Project Reference updates I documented them and can provide instructions for adding the necessary Project References when making use of our new UserControl.

 

Here’s my list of automatically added Project References for the RadSplitButton:

 

  • System.Configuration

  • Telerik.Windows.Controls, Version=2011.1.419.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7

  • UIAutomationProvider

  • UIAutomationTypes

 

I hope this helps someone.

 


Joe

 

0
Thierry
Top achievements
Rank 1
answered on 22 Sep 2011, 07:48 PM
I was essentially getting this error, and a few of the other ones on this thread... i resolved it by registering all the telerik to the GAC.

Exit your solution. then do the following for each assembly you want to reference in your project.
ex.
gacutil /i Telerik.Windows.Controls.dll

make sure you run this in the telerik binaries directory, and make sure gacutil is available in the path... i used the VS command prompt, so it takes care of that part.
Now i know you can 'browse' for these files and include them in your project, but that wasn't working for me.

0
Kevin
Top achievements
Rank 1
answered on 23 Nov 2011, 07:53 AM
I was getting the exact same error.
Doing gacutil /i Telerik.Windows.Controls.dll and gacutil /i Telerik.Windows.Controls.Navigation.dll
solved my problem....
Thanks guys

0
Lane
Top achievements
Rank 2
answered on 18 Oct 2013, 03:54 PM
Hello All,

I was having the same problem. I just deleted all the Telerik references from my project and re-referenced them and it solved my problem. Hopefully this will help someone else out.

Lane
Tags
General Discussions
Asked by
Daniel
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Fukee
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Stephen Austin
Top achievements
Rank 1
Combinations
Top achievements
Rank 1
Henrique Duarte
Top achievements
Rank 1
Veteran
YYZRichard
Top achievements
Rank 2
Bart
Top achievements
Rank 1
Joe
Top achievements
Rank 1
Vlad
Telerik team
Thierry
Top achievements
Rank 1
Kevin
Top achievements
Rank 1
Lane
Top achievements
Rank 2
Share this question
or