Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to uninstall an Assembly from GAC?

Tags:

I am unable to uninstall an Assembly (log4net.dll) from GAC. It is giving following error.

"Assembly is required by one or more applications".

However if I search the Assembly using ProcessExplorer nothing comes up? How can I remove this Assembly from GAC?

like image 393
Amitabh Avatar asked Mar 15 '10 13:03

Amitabh


People also ask

How do I remove an assembly from the GAC?

There are two ways to remove an assembly from the global assembly cache (GAC): By using the Global Assembly Cache tool (Gacutil.exe). You can use this option to uninstall assemblies that you've placed in the GAC during development and testing. By using Windows Installer.

How do I find out if assembly is registered in GAC?

If you dont care that the assembly is actually in the GAC, but just loadable on the machine (from the appdomain) you can just use LoadAssembly with the assemblies name (strong, common, full, etc). If the assembly can be loaded by Fusion it will be and then you will know it exists.


2 Answers

Have you considered reading this KB article and trying it out?

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To work around this problem, examine the list of values for the following subkeys in Registry Editor:

HKEY_CURRENT_USER\Software\Microsoft\Installer\Assemblies\Global HKEY_LOCAL_MACHINE\Software\Classes\Installer\Assemblies\Global

If the value for the entry is a Windows Installer descriptor, delete the entry. For example, the value might be a cryptic REG_MULTI_SZ entry that resembles the following: =ysgSC6wx9uiD1dqmmjW>m$!GP^D'A@?z}gn3}lta

Note You must delete the entry. Do not just clear the value of the entry.

like image 91
Pieter Germishuys Avatar answered Sep 22 '22 19:09

Pieter Germishuys


The most likely cause of this is that you have installed the log4net assembly via a Windows Installer (msi-package). If that is the case, try to uninstall it using Add/Remove programs.

like image 37
CodingInsomnia Avatar answered Sep 20 '22 19:09

CodingInsomnia