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

1 Answer 6419 Views
GridView
Alex
Top achievements
Rank 1
Alex asked on 22 Mar 2014, 12:26 PM
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?

Dimitrina
Telerik team
commented on 24 Mar 2014, 07:59 AM

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.

 
Alex
Top achievements
Rank 1
commented on 24 Mar 2014, 10:09 AM

Hello. Thanks for your answer. But it didn't help (((

1 Answer, 1 is accepted

Sort by
1
Alex
Top achievements
Rank 1
answered on 24 Mar 2014, 11:32 AM
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)
Dimitrina
Telerik team
commented on 25 Mar 2014, 12:01 PM

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.

 
Bruce
Top achievements
Rank 2
commented on 19 Nov 2015, 09:26 PM

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.
Kazuhiko
Top achievements
Rank 1
commented on 15 Nov 2017, 06:29 AM

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.

 

 

Stefan Nenchev
Telerik team
commented on 17 Nov 2017, 12:25 PM

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 you to write beautiful native mobile apps using a single shared C# codebase.
Boris
Top achievements
Rank 1
commented on 26 Mar 2019, 10:13 PM

System.Windows.Markup.XamlParseException: 'Could not load file or assembly 'Telerik.Windows.Controls, Version=2019.1.220.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 
Dinko | Tech Support Engineer
Telerik team
commented on 29 Mar 2019, 12:46 PM

Hi Boris,

Thank you for your interest in our RadGridView control for WPF.

Looking at the provided XAML exception it seems that the Telerik.Windows.Controls DLL is not referenced to the project. May I ask you to double check if all required assemblies are referenced to the project. If this is not the case, can you share a little more information about your scenario? This way I could better understand it and provide you a suitable solution.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Share this question
or