Could not load assembly Telerik.Windows.Controls.Navigation

21 posts, 0 answers
  1. Daniel
    Daniel avatar
    1 posts
    Member since:
    Sep 2008

    Posted 17 Sep 2008 Link to this post

    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
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 18 Sep 2008 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Fukee
    Fukee avatar
    3 posts
    Member since:
    Dec 2008

    Posted 22 Dec 2008 Link to this post

    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?
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 23 Dec 2008 Link to this post

    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.
  6. Fukee
    Fukee avatar
    3 posts
    Member since:
    Dec 2008

    Posted 23 Dec 2008 Link to this post

    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."
  7. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 26 Dec 2008 Link to this post

    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.
  8. Stephen Austin
    Stephen Austin avatar
    8 posts
    Member since:
    Jan 2009

    Posted 21 Jan 2009 Link to this post

    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
  9. Fukee
    Fukee avatar
    3 posts
    Member since:
    Dec 2008

    Posted 21 Jan 2009 Link to this post

    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.
  10. Stephen Austin
    Stephen Austin avatar
    8 posts
    Member since:
    Jan 2009

    Posted 21 Jan 2009 Link to this post

    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.
  11. Combinations
    Combinations avatar
    14 posts
    Member since:
    Jun 2012

    Posted 15 Oct 2009 Link to this post

    Thanks, this saved me some headache.
    Also running Prism and couldn't get the app to run.
  12. Henrique Duarte
    Henrique Duarte avatar
    104 posts
    Member since:
    Oct 2003

    Posted 13 Jan 2010 Link to this post

    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

  13. YYZRichard
    YYZRichard avatar
    20 posts
    Member since:
    Dec 2009

    Posted 27 Jan 2011 Link to this post

    Thanks Fukee, I had the same problem (PRISM MVVM Pattern) and your sugestion fixed my problem.
  14. Bart
    Bart avatar
    5 posts
    Member since:
    Mar 2008

    Posted 16 Jun 2011 Link to this post

    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:
  15. Joe
    Joe avatar
    15 posts
    Member since:
    Apr 2011

    Posted 06 Jul 2011 Link to this post

    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>
  16. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 06 Jul 2011 Link to this post

    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!

  17. Joe
    Joe avatar
    15 posts
    Member since:
    Apr 2011

    Posted 06 Jul 2011 Link to this post

    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
  18. Joe
    Joe avatar
    15 posts
    Member since:
    Apr 2011

    Posted 06 Jul 2011 Link to this post

    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
  19. Joe
    Joe avatar
    15 posts
    Member since:
    Apr 2011

    Posted 06 Jul 2011 Link to this post

    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

     

  20. Thierry
    Thierry avatar
    1 posts
    Member since:
    Aug 2011

    Posted 22 Sep 2011 Link to this post

    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.

  21. Kevin
    Kevin avatar
    1 posts
    Member since:
    Jun 2008

    Posted 23 Nov 2011 Link to this post

    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

  22. Lane
    Lane avatar
    5 posts
    Member since:
    Dec 2012

    Posted 18 Oct 2013 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready