Solution need to refer GAC and not BIN - Telerik.Web.UI

2 posts, 0 answers
  1. krishna
    krishna avatar
    1 posts
    Member since:
    Dec 2014

    Posted 16 Dec 2014 Link to this post

    1. We are migrating SharePoint 2010 solutions to SharePoint 2013. In SharePoint 2013 we need to have dlls only in GAC and not in BIN.

      I tried to check if by moving Telerik dlls to GAC the functionality of the site.

      1- I moved dlls from BIN to GAC with gacutil.exe.
      2- Referred dlls in Visual Studio SharePoint solution from GAC.
      3- When  i deploy the solution i get the below error.

      Could not load file or assembly 'Telerik.Web.UI' or one of its
      dependencies. The system cannot find the file specified. 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.FileNotFoundException: Could not load file or assembly
      'Telerik.Web.UI' or one of its dependencies. The system cannot find the file
      specified.
    2. When deploying the SharePoint solution, i can see this in Visual Studio, the warning icon at Telerik.Web.UI.dll (attached image)

    What is the way where i can push the Telerik dlls to GAC.

     

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 18 Dec 2014 Link to this post

    Hello,

    Such an error means one of the following:

    • the project referneces are not actually correct for referencing the assembly from the GAC
    • OR, the assembly is not properly registered in the GAC

    This blog post will show you how to examine both: http://blogs.telerik.com/aspnet-ajax/posts/13-09-19/working-with-assemblies-in-the-global-assembly-cache.

    Our assemblies are not special in any way and the standard processes for referencing them from the GAC apply.


    Regards,

    Marin Bratanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     

Back to Top