Could not load file or assembly 'Telerik.Windows.Controls.[anycontrol]'

8 posts, 0 answers
  1. Alex
    Alex avatar
    19 posts
    Member since:
    Feb 2012

    Posted 22 Mar 2014 Link to this post

    I'm struggling with this issue for a few days. I guess it's something with solution because the same assemblies works fine for other projects.
    Also in design time designer works okay and draw controls, but in runtime I'm getting System.Windows.Markup.XamlParseException.

    Telerik's References:
    Telerik.Windows.Controls
    Telerik.Windows.Controls.GridView
    Telerik.Windows.Controls.Input
    Telerik.Windows.Data

    Installed Packages:
    Microsoft.Bcl (1.0.19)
    Microsoft.Bcl.Async(1.0.165)
    Microsoft.Bcl.Build(1.0.4)

    Controls version is 2013.2.724.40 for .net 4.0,
    Visual Studio 2013 with latest updates,
    Windows 8.1

    I have tried:
    1) add references for assemblies in new solution and it works okay;
    2) create new project(Wpf User Control Library and Class Library) in solution;
    3) uninstall Microsoft.Bcl packages;
    4) download latest trial version and even designer throw exception and intellisense didn't work for http://schemas.telerik.com/2008/xaml/presentation in xaml ( <telerik: and empty list ).

    So I have no idea what is going wrong... Could you help?

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 24 Mar 2014 Link to this post

    Hello,

    This error indicates problem loading the assembly.

    May I ask you to 

    • make sure you have referenced all the assemblies and they are with the same version.
    • Then delete the Bin and obj folders of the project manually, Clean and Rebuild it.
    Does this help?

    Regards,
    Didie
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
  3. Alex
    Alex avatar
    19 posts
    Member since:
    Feb 2012

    Posted 24 Mar 2014 in reply to Dimitrina Link to this post

    Hello. Thanks for your answer. But it didn't help (((
  4. Alex
    Alex avatar
    19 posts
    Member since:
    Feb 2012

    Posted 24 Mar 2014 Link to this post

    Finally I figured out the reason... I'm using prism to separate app in modules. And I have some module that represents part of my UI and only this module has reference to telerik's assemblies. So start up project doesn't has reference to telerik's and there is no telerik's in bin\Debug folder. Adding telerik's to start up project solves this issue. But I'm wondering why teleriks don't want to be copied to Debug folder as other do(for example Microsoft.Threading.Tasks or some of my libraries)
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 25 Mar 2014 Link to this post

    Hi,

    Generally if you have added references to our assemblies to a project from your solution and this project does not build, then those assemblies will not be copied to the bin/Debug folder. Once the project is built, the assemblies will be copied.
    We are actually not doing anything specific related to our assemblies.

    Regards,
    Didie
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
  6. Bruce
    Bruce avatar
    1 posts
    Member since:
    Nov 2015

    Posted 19 Nov 2015 in reply to Alex Link to this post

    Thank you very much for posting this! I started going down this same rabbit hole with our Prism project and your answer solved this same issue we had. I agree that it would be nice if somehow the Telerik suite recognized what was happening and automatically copied the necessary files into the actual executing bin directory.
  7. Kazuhiko
    Kazuhiko avatar
    1 posts
    Member since:
    Nov 2017

    Posted 3 days and 2 hours ago in reply to Dimitrina Link to this post

    Hello

    with UWP, We still have this problem.

    "Could not load file or assembly 'Telerik.UI.Xaml.Map.UWP, Version=2017.3.1018.45, Culture=neutral, PublicKeyToken=54096b0481e00341'. Not found "

    I removed Bin, Obj folder. but I can not compile my UWP project yet. 

    1) I added 2 reference file.

    2) remove bin, obj

    3) rebuild. build look like success. but During launching, It has error System.IO.  Why ?

     

    Should I copy manually DLL to my debug folder ? please advice me.

     

     

  8. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    534 posts

    Posted 20 hours ago Link to this post

    Hi, Kazuhiko,

    Generally, when having an issue with another technology, we advise on creating a new thread in the respective technology forum. With this in mind, please post in the UI for Universal Windows Platform forum for future questions.

    In the meantime, please share more information on your setup and the controls you would like to use. Are you using only the RadMap within your application?
    Please have a look at the following article regarding the references you need to add in order to use this control - Adding a RadMap control to your application. Follow the steps in the article and, in case you are still experiencing the issue, provide a small sample which shows your setup so we can advise you more specifically.

    Have a great weekend.

    Regards,
    Stefan Nenchev
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top