locked
GAC uninstall RRS feed

  • Question

  • Hi All,
    I am trying to uninstall the dll from GAC manually, but it shows access denied.

    Please let us know your suggestions
    Thanks
    Murari

    Tuesday, March 9, 2010 2:26 PM

All replies

  • You must have elevated privilegs in Vista and Seven.
    Start Visual Studio or whatever with Admin privilegs.


    Start cmd.exe (or Visual Studio command line) with admin-rights and then use

    gacutil.exe -u bin\debug\My.dll


    Edit:Maybe you have to use the x64 version of gacutil?
    Tuesday, March 9, 2010 2:47 PM
  • Thanks for your response,

    But Still I am not able to uninstall them.Getting access denied error.

    I have restarted machine as well.

    Thanks
    Murari
    Friday, March 12, 2010 9:36 AM
  • Maybe your assambly is in use by a process? Try to figure it out with ProcessExplorer. Don't forget to run it with elevated privilegs.
    Friday, March 12, 2010 12:20 PM
  • Hi Murari,
    What command you have used to uninstall the assembly from GAC? what's the assembly full name ( for example: "A, Version=2.0.0.0, Culture=neutral, PublicKeyToken=03537efbde8b1cd4").
    Sincerely,
    Eric

    Monday, March 15, 2010 2:20 AM
  • Thanks for your response,

    I am doing right click the dll inside Assembly folder and select uninstall.

    Thanks in advance
    Murari
    Thursday, March 18, 2010 10:45 AM
  • Explorer isn't elevated, that's probably the issue. Try an elevated command prompt and gacutil /u .  Or maybe an elevated "run as administrator" Explorer process will work.
    Phil Wilson
    Thursday, March 18, 2010 9:20 PM
  • Hi, MurariBTS:

         I am writing to check the status of your problem. Could you share your progress?


    Please mark the right answer at right time.
    Thanks,
    Sam
    Friday, March 19, 2010 9:12 AM
  • In some rare situations the physical file might be missing but the version folder remains. In Explorer it looks like the file is there, but it cannot be removed, not even with gacutil.exe.

    The only way I know of to fix this is:

    open a dos prompt (cmd.exe)

    do "cd %windir%\assembly\GAC_MSIL"

    navigate to the assembly's dir, delete the (empty) version directory, navigate back and delete the assembly's directory.

    After that the assembly will no longer show up in the Explorer-view.

    Hope that helps

    • Proposed as answer by M.L. Somers Friday, March 26, 2010 3:07 PM
    Friday, March 26, 2010 3:07 PM
  • In some rare situations the physical file might be missing but the version folder remains. In Explorer it looks like the file is there, but it cannot be removed, not even with gacutil.exe.

    The only way I know of to fix this is:

    open a dos prompt (cmd.exe)

    do "cd %windir%\assembly\GAC_MSIL"

    navigate to the assembly's dir, delete the (empty) version directory, navigate back and delete the assembly's directory.

    After that the assembly will no longer show up in the Explorer-view.

    Hope that helps

    This process worked for me.

    Jason Warren
    Infrastructure Specialist
    Habañero Consulting Group
    www.habaneros.com/blog

    Monday, March 5, 2012 10:56 PM
  • http://blogs.msdn.com/b/mortens/archive/2010/11/09/access-denied-uninstalling-assemblies-from-gac.aspx

    Ivan Gorbadei. Sharepoint 2010 MCPD & MCITP.

    Thursday, December 6, 2012 12:19 PM