Search code examples
windows-installergacesri-arc-engine

How to register DLL in the GAC?


I am trying to install a C# WPF with a WindowsFormsHost which loads ESRI's ArcEngine.

The MSI installer gives this error:

Unable to install.  The app requires assembly ESRI.ArcGIS.Framework Version 
10.0.0.0 to be installed in the GAC first

I already installed the ESRI ArcEngine Runtime 10 which is supposed to handle this sort of thing, but I guess it's not perfect.

On the target machine the file framework.dll is in the folder: C:\Program Files\ArcGIS\DeveloperKit10.0\DotNet, but it's not in c:\windows\assembly.

I right clicked on the assembly then clicked register to register but that didn't fix my problem.


Solution

  • Here are two methods.

    1. Using the utility gacutil -i

      gactutil -i c:\foldername\assemblyname.dll

    2. The second method is you can drag the .dll file from the bin folder of the assembly and drop it into the folder C:\%systemroot%\Assembly