Home / Community & Support / Knowledge Base / RadControls for ASP.NET AJAX / General, Installation, Licensing / Adding a control to the GAC (Global Assembly Cache)

Adding a control to the GAC (Global Assembly Cache)

Article Info

Rating: 4

   

Article information

Article relates to

all versions of RadControls

Created by

Robert, Telerik

Last modified

May 16th, 2008

Last modified by

Georgi Popivanov, Telerik

HOW TO
Add a control to the GAC (Global Assembly Cache)
 
SOLUTION


Add to Global Assembly Cache

You can add a control to the Global Assembly Cache (GAC) by using the Global Assembly Cache tool (Gacutil.exe). The Global Assembly Cache tool is automatically installed with Visual Studio.

Note: In earlier versions of the .NET Framework, the Shfusion.dll Windows shell extension enabled you to install assemblies by dragging them in Windows Explorer. Beginning with the .NET Framework version 4, Shfusion.dll is obsolete.

To install the Telerik.Web.UI assembly, open Visual Studio Command Prompt (Start > Programs > Microsoft Visual Studio <VS version> > Visual Studio Tools) and run the gacutil.exe tool with -i parameter (install) and the name of the control, e.g.

gacutil.exe -i "C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q2 2010\Bin40\Telerik.Web.UI.dll"


Remove from Global Assembly Cache

In order to remove Telerik RadControls for ASP.NET AJAX from GAC, please use the following command:

gacutil.exe -u Telerik.Web.UI 

More information on how to work with Global Assembly Cache and how to install controls in different .NET versions, can be found in the MSDN:

MSDN: Working with Assemblies and the Global Assembly Cache
MSDN: How to Install an Assembly into the Global Assembly Cache

Comments

  • Mostafa , Apr 17, 2007

    Thanks, but the PublicKeyToken that I get from gacutil /l command must be same in machin.config?

  • Telerik Admin , Apr 26, 2007

    Yes, I believe your assumption is correct.

  • Shatl , Nov 30, 2007

    Also I wold like to recommend to generate native image of controls using NGen. This will shorted initial delay related to JIT compilation.

If you'd like to comment on this KB article, please, send us a Support Ticket.
Thank you!

Please Sign In to rate this article.