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

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

1 Answer 188 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
krishna
Top achievements
Rank 1
krishna asked on 16 Dec 2014, 01:46 PM
  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.

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 18 Dec 2014, 02:44 PM

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.

 
Tags
WebParts for SharePoint
Asked by
krishna
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or