RadEditor for ASP.NET

Add/Remove Telerik RadEditor to the Global Assembly Cache Send comments on this topic.
See Also
Installation and deployment > Deploying Telerik RadEditor into ASP.NET Applications > Add/Remove Telerik RadEditor to the Global Assembly Cache

Glossary Item Box

Add to Global Assembly Cache

There are two ways to add a control to the Global Assembly Cache (GAC):

Automatic

  1. Go to Start ->  Settings -> Control Panel -> Administrative Tools -> Microsoft .NET Framework 2.0 Configuration
  2. Expand the nodes and locate Assembly cache
  3. Right-click on it and select Add:

    Microsoft .NET 2.0 Configuration panel
     
  4. Browse to the Telerik bin directory and ctrl-highlight the needed DLL's (the demo and DictionaryConfiguration DLLs are not needed).
  5. Click Open.

Manual

  1. Run the .NET command prompt (Start -> Programs -> Microsoft VS.NET -> VS.NET Tools -> VS.NET prompt) and start the gacutil.exe tool with -i parameter (install) and the name of the control, e.g.

      Copy Code
    gacutil.exe -i "C:\Program Files\Telerik\Telerik RadEditor7.0\NET1NET2\bin\RadEditor.Net2.dll"


    You may also directly copy the dll files to the "\WINDOWS\assembly" (or "\WINNT\assembly") folder of your server - this is equivalent to the effect of the gacutil.exe utility.
     

  2. Change the machine.config file of the server and add a reference to the assembly in the GAC. The machine.config file is the configuration file for all web applications on the server. It is located at: "\WINDOWS\Microsoft.NET\Framework\[Framework Version]\CONFIG". It is similar in to the web.config file, but the web.config only works for the web application, in which it resides.

    Locate the <assemblies> tag (which should be under <configuration><system.web> <compilation>/<compilers>/<assemblies> ) Between the <assemblies> tag, you should enter something similar to:

      Copy Code
    <add assembly="AssemblyFileName, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5edf592a9c40680c" />


    To get the information that goes into the assembly attribute (version, culture, PublicKeyToken), you can run the gacutil /l command, which will return a list of all the assemblies in the GAC. You will have to look for the one you just added and copy the entire line (minus the Custom=null part at the end).
    For example the following command:

      Copy Code
    gacutil -l RadEditor.Net2


    will return:

      Copy Code
    RadEditor, Version=7.0.0.0, Culture=neutral, PublicKeyToken=e8ab424810b6b9b5 Custom=null


    so the correct entry in the machine.config should be:

      Copy Code
    <add assembly="RadEditor.Net2, Version=7.0.0.0, Culture=neutral, PublicKeyToken=e8ab424810b6b9b5" />

 

After that you should be able to use the control in all the application on the server without having to copy it to the "bin" folder of each web-application. 

Remove from Global Assembly Cache

In order to remove Telerik RadEditor from GAC, please use the following command:

  Copy Code
gacutil.exe -u radeditor  

 

See Also