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

Fail to load types from assembly

5 Answers 499 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pierre
Top achievements
Rank 2
Iron
Iron
Pierre asked on 20 May 2010, 07:02 PM
I got several warning (no compilation error and the application work well) telling my that he "fail to load types from assembly 'Telerik.windows.Controls.Navigation'. I starting receive this when i start to add some telerik control on one of my silverlight 4 page.

Warning 1 Failed to load types from assembly 'Telerik.Windows.Controls.Navigation, Version=2010.1.309.1030, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' so the assembly will be ignored.
Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified. GestionMembre

Warning 2 Assembly 'Telerik.Windows.Controls.Input, Version=2010.1.422.1030, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' could not be loaded and will be ignored.
Could not load file or assembly 'Telerik.Windows.Controls.Input, Version=2010.1.422.1030, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified. GestionMembre

Warning 3 Failed to load types from assembly 'Telerik.Windows.Controls.GridView, Version=2010.1.422.1030, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' so the assembly will be ignored.
Cannot resolve dependency to assembly 'Telerik.Windows.Controls.Input, Version=2010.1.422.1030, 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. GestionMembre

and so on! But the telerik assembly are there.

By the way, I try to copy my projet to another computer that have VS2010 and telerik radcontrol for silverlight. All work good except the design time rendering of all page containing telerik control. If I add a new silverlight page and try to add a RadGridView I got a 'expected' error. If I add several random telerik control (like radslider, rad input, ... ) then i can add the radGridview without problem and the desing time rendering problem are gone on the other telerik page.

I think these 2 problems are linked!

any suggestion?

5 Answers, 1 is accepted

Sort by
0
Pierre
Top achievements
Rank 2
Iron
Iron
answered on 20 May 2010, 07:02 PM
Oups the system added this post 2 time! Sorry!
0
Valeri Hristov
Telerik team
answered on 21 May 2010, 11:41 AM
Hello Pierre,

You have mixed references - all Telerik assemblies in an application should have the same version. From the stack trace I am seeing that you are using both 2010.1.309 and 2010.1.422 versions. Please, ensure that all Telerik assemblies have the correct version.

Sincerely yours,
Valeri Hristov
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
Pierre
Top achievements
Rank 2
Iron
Iron
answered on 21 May 2010, 01:31 PM
HO! you are wright! I do not see this mixed reference. I delete all Telerik reference, and DLL in the Bin directory and add reference again. All warning are gone except for one:

Warning 2 Failed to load types from assembly 'Telerik.Windows.Controls.Navigation, Version=2010.1.309.1030, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' so the assembly will be ignored.
Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified. GestionMembre

But I do not have DLL or reference for this 2010.1.309.1030 in my projet and i don't see where this DLL is called. How I can resolve this?
0
Hristo
Telerik team
answered on 26 May 2010, 07:36 AM
Hello Pierre,

You could try to delete the Obj folder too. Then try to rebuild the application and let us know if the problem still exist. If so please send you the application so that we can investigate.

Best wishes,
Hristo
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
Scott
Top achievements
Rank 1
answered on 26 Jun 2012, 04:02 PM
I observed this issue when attempting to host a WPF user-control within a Winforms application.
I resolved this run-time exception by copying all the Telerik references from the WPF user-control project to the Winforms project. This means that I had to duplicate the same Telerik references across projects.

I admit that I am not sure of the science behind why this method was necessary for me to resolve these exceptions. But it worked.

Regards,
Scott Nimrod
Tags
General Discussions
Asked by
Pierre
Top achievements
Rank 2
Iron
Iron
Answers by
Pierre
Top achievements
Rank 2
Iron
Iron
Valeri Hristov
Telerik team
Hristo
Telerik team
Scott
Top achievements
Rank 1
Share this question
or