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

6 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. UI for WPF is Visual Studio 2017 Ready
  4. 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 (((
  5. 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)
  6. 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.

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