Telerik dll won't load

5 posts, 0 answers
  1. Francis
    Francis avatar
    3 posts
    Member since:
    Aug 2010

    Posted 30 Aug 2010 Link to this post

    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)
  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 31 Aug 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Francis
    Francis avatar
    3 posts
    Member since:
    Aug 2010

    Posted 01 Sep 2010 Link to this post

    I just copy the Telerik.Web.UI.dll and Telerik.Web.UI.xml from a licenced one.

    I didn't install anything else.
  5. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 02 Sep 2010 Link to this post

    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
  6. Francis
    Francis avatar
    3 posts
    Member since:
    Aug 2010

    Posted 06 Sep 2010 Link to this post

    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!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017