Why can't I add my DLL to the GAC in Windows 7?

17,306

Have you tried starting Windows Explorer as Administrator?

Even if your user account has admin rights you still need that elevation for such tasks.

If this doesn't work, I suggest you use gacutil.exe. You also have to open the command prompt as administrator then:

  1. In start menu find the link to the command prompt of your visual studio installation. If this isn't your development machine you need the SDK or just copy gacutil.exe.
  2. Right click the command prompt shortcut and choose "run as administrator".
  3. In the command prompt you type gacutil /i "assembly_path". Or type gacutil /? for an explanation how to use it.
Share:
17,306
RHM
Author by

RHM

Updated on June 04, 2022

Comments

  • RHM
    RHM almost 2 years

    Possible Duplicate:
    How to add a dll to gac in vista

    I have changed my OS to Windows 7 from Windows xp. I am trying to put the DLL in Windows 7 assembly folder but I am unable to do so. I am getting Access Denied error alert.

    Please let me know how to drag and drop a DLL in Windows 7 assembly.