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

Telerik dll won't load

4 Answers 179 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
Francis
Top achievements
Rank 1
Francis asked on 30 Aug 2010, 05:07 PM
Hello all!

I have referenced the Telerik.Web.UI in my VS 2008 Web project with DOT.NET 2 and got this following page Error. A developper has send me his code with the Tlerik.Web.UI.dll to test the code on my machine. Is it a licence problem? I just want to test. What can I do to solve the problem?
 

Server Error in '/WasteplanRS' Application.

Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

4 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 31 Aug 2010, 08:32 AM
Hi Francis,

It is not a licensing problem, the Telerik assemblies do not throw a runtime error when a trial used.

The error you got happens when the .NET Runtime cannot find the Telerik.Web.UI assembly used by the application. There are two ways this happens most:
  1. The application is configured to use a GAC-reference of the Telerik.Web.UI assembly and the local computer does not contain the assembly in its GAC
  2. The application is configured to use a BIN-reference of the Telerik.Web.UI assembly and it is distributed to the other machine without the assembly in the BIN.

You could check the Best Practice: Making OpenAccess projects version independent post for some hints on using a third-party assembly with Source Control.

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
Francis
Top achievements
Rank 1
answered on 01 Sep 2010, 02:25 PM
I just copy the Telerik.Web.UI.dll and Telerik.Web.UI.xml from a licenced one.

I didn't install anything else.
0
Erjan Gavalji
Telerik team
answered on 02 Sep 2010, 08:57 AM
Hello Francis,

The error could happen because you and the developer used different versions of the RadControls assemblies. Can you ask them for theirs?

Here are some hints: is your site created by a Visual Studio WebSite Project, or a Web Application Project?
If the latter, you should either use a Binding Redirect in the application web.config file, or you should recompile the project referencing the new assembly.

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
Francis
Top achievements
Rank 1
answered on 06 Sep 2010, 04:44 PM
Dear form suscribers,

I have find the solution: the version of the referenced teletik dll was not the right one.

Thanks to all for your help!
Tags
Installer and VS Extensions
Asked by
Francis
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Francis
Top achievements
Rank 1
Share this question
or