Cannot remove a .NET assembly from GAC

  • Thread starter Thread starter Navin
  • Start date Start date
N

Navin

Hi everyone,

I am facing this typical problem. I have a .NET assembly called
"SecurityLib", which I have kept in GAC using gacutil tool. But now I can
not uninstall it from GAC using gacutil.
I have tried various parameters
gacutil /u
gacutil /uf
gacutil /ungen
gacutil /cdl


The error message is like:
Assembly: SecurityLib, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=5843b4c8bb83aa99, Custom=null
Unable to uninstall: assembly is required by one or more applications

Pending references:
SCHEME: <WINDOWS_INSTALLER> ID: <MSI> DESCRIPTION : <Windows Installer>

But I am pretty sure that it is not referred by any of my applications.

Can any body help please?

Thanks in advance,

Sam
 
Open Explorer and goto C:\WINDOWS\assembly or C:\WINNT\assembly right click
on the assembly in question and select delete.

Hope this helps

Dion Heskett
 
I am enclosing what MS recommends for IEWebcontrols.
-------
3. Check the Global Assembly Cache (GAC) to ensure that
Microsoft.Web.UI.WebControls and Microsoft.Web.UI.WebControls.Design
do not appear. You may use the command "gacutil -l" to do this. The
gacutil tool is located at Program
Files\Microsoft.NET\FrameworksSDK\Bin or Program Files\Microsoft
Visual Studio .NET\FrameworksSDK\Bin. If the DLLs still exist in the
GAC, unregister the DLLs. Use the following syntax to unregister the
DLLs:
gacutil -u Microsoft.Web.UI.WebControls
gacutil -u Microsoft.Web.UI.WebControls.Design
 
Back
Top