Cannot remove a .NET assembly from GAC

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
 
D

Dion Heskett

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
 
M

Manish Jain

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top