How to: Uninstall an assembly (dll) from the GAC
So, you probably have already tried going to the GAC and selecting uninstall, if not, below are the instructions:
- Navigate to the GAC, which is located at %systemdrive%WindowsAssembly.
- Right-click on the assembly you wish to uninstall, click Uninstall, and then click Yes to confirm.
In my case I kept wondering why I can’t possibly follow those simple instructions. The reason is that you have to be able to write to the directory (i.e. have permissions to write to the directory) which you would think as an administrator you would, but it turns out you have to be a local administrator to do that. Anyway, so what should the people who don’t want to bother doing that can do? Well, you can run a command line to uninstall Dlls pretty easily, just remember to execute it using elevated permissions:
- Open a Visual Studio command prompt and don’t forget to right click and run as an Administrator. *click Microsoft Visual Studio 20xx Command Prompt.*
- At the command prompt, type the following command:
gacutil /u <fully qualified assembly name>
In this command, assembly name is the name of the assembly to uninstall from the GAC.
For example
gacutil /u “Domain.Solution.Project,Version=1.0.0.0, Culture=neutral, PublicKeyToken=somekeyvalue”
gacutil /u Telerik.Web.UI
Love
Can we use Let's Encrypt, the free and open certificate authority?
Hola! gracias por la info, me sirvió el comando sacandole el nombre del server. En mi caso, fue una migración…
Yes 3rd option helped me too. I removed the WC key Values from config file then started working.
I know this is from 2014. But really, thank you!