Friday, November 19, 2010

How to add a dll to GAC in Windows 7

Today I started developing SharePoint application in Win 7 and faced some peculiar issue - I was not able to drag and drop my applications assembly into the gac. So, here comes the main points that you need to keep in mind to deploy one assembly in Win 7 GAC:

1. You must be a member of the Administrator Group.

2. Navigate to "C:\Windows\assembly" in the explorer and right click on it and select "Open in new window".

3. Type 'cmd' in run and as it appears in the top, right click on it and select "Run as administrator".

4. In the command prompt navigate to "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64"

5. Now use the following command: gacutil -i "full path of the file system\XYZ.dll"

6. You will get a message "Assembly successfully added to the cache"

7. Refresh the assembly folder that you have opened in step 2 and you will find your applications assembly there.


  1. Once done my Add references dialog fails to show the registered dll.

  2. Are you getting "Assembly successfully added to the cache" message? If yes, then it has been definitey added to the GAC.

  3. Hi, i have found a web post where is detailed the precedure to add a made on framework 4 dll to the gac, and here i give you the link

  4. However, you can add the dll file to GAC by following the below process

  5. Great Post, THNX a lot

  6. install assembly

    gacutil -i AssemblyName


    gacutil /u AssemblyName (Fully Qualified Name of Assembly)

    more details...