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

Could not load file or assembly 'Telerik.Windows.Controls.Scheduler

4 Answers 839 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ticket Solutions Account
Top achievements
Rank 1
Ticket Solutions Account asked on 26 May 2011, 12:11 AM
Hey,

I have just updated my project to version 2011.1.419.1040 from 2010.2.714.1040 using the telerik upgrade wizard in VS2010 and am now getting this error.

The control could not be loaded:
Could not load file or assembly 'Telerik.Windows.Controls.Scheduler, Version=2011.1.419.1040, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The requested assembly version conflicts with what is already bound in the app domain or specified in the manifest. (Exception from HRESULT: 0x80131053)

I have tried manually adding the dll files to the GAC and this didn't help either. The project compiles with no errors it is just at run time.

Is there a difference in the requirements for the Scheduler? 

Regards,
Andrew

4 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 26 May 2011, 01:06 PM
Hi Andrew,

This error typically happens in scenarios where a ClassLibrary/ControlLibrary project uses a RadControls distribution different than the one used by the main Silverlight project.

Could it be that your solution consists of several projects, where the main Silverlight project was upgraded and some of the other projects use the older RadControls for Silverlight assemblies?

Kind regards,
Erjan Gavalji
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Joe
Top achievements
Rank 1
answered on 06 Jul 2011, 04:08 PM
I am having the same type of problem with Telerik WPF controls.
I can see threads like this that are started and never resolved.
I am having trouble executing RadSplitButton and RadDataGrid in WPF.
The same error: Could not load file or assembly 'Telerik.Windows.Controls, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.
I have added every single project reference that is included in the Telerik demos without resolving the problem.
I have tried changing my XAML reference from this:
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
to this:
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
with no success.
I do not want to, nor do I think I should need to fool around with my GAC.  The Telerik install needs to set up my workstation in the best state for to adding Telerik controls into Visual Studio 2010 solutions.  I figure that I do not need to do extra work.
Why are Telerik controls SO hard to use?
Joe
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, 08:21 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

Tags
General Discussions
Asked by
Ticket Solutions Account
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Joe
Top achievements
Rank 1
Share this question
or