sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Navin's Avatar

Cannot remove a .NET assembly from GAC


Question posted by: Navin (Guest) on July 21st, 2005 09:05 AM
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


3 Answers Posted
Cowboy \(Gregory A Beamer\)'s Avatar
Cowboy \(Gregory A Beamer\) July 21st, 2005 09:05 AM
Guest - n/a Posts
#2: Re: Cannot remove a .NET assembly from GAC

Did you place it in the GAC with a custom installer? That is an issue.

Also, did it once get used by a web app? If so, recycle the aspnet worker
process, which should free it.

--
Gregory A. Beamer
MPV; MCP: +I, SE, SD, DBA

************************************************** ********************
Think outside the box!
************************************************** ********************
"Navin" <nv@nv.com> wrote in message
news:u%23N6MJUdDHA.3836@tk2msftngp13.phx.gbl...[color=blue]
> 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
>
>[/color]


robert slaney's Avatar
robert slaney July 21st, 2005 09:10 AM
Guest - n/a Posts
#3: Re: Cannot remove a .NET assembly from GAC

Hi Greg

I am having the same issue. I manually added some assemblies, both by
using GACUtil and Drag-drop into Assembly folder. I have not used a
custom installer.

Why is Windows Installer a registered dependance of these assemblies,
but it was not used to put it in the GAC.

Rebooting the PC has not fixed it.

Cheers...

Rob Slaney

-------------- Previous Post -----------------------

Did you place it in the GAC with a custom installer? That is an issue.

Also, did it once get used by a web app? If so, recycle the aspnet
worker
process, which should free it.

--
Gregory A. Beamer
MPV; MCP: +I, SE, SD, DBA

************************************************** ********************
Think outside the box!
************************************************** ********************
"Navin" <nv@nv.com> wrote in message
news:u%23N6MJUdDHA.3836@tk2msftngp13.phx.gbl...[color=blue]
> 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[/color]
can[color=blue]
> 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[/color]
Installer>[color=blue]
>
> But I am pretty sure that it is not referred by any of my[/color]
applications.[color=blue]
>
> Can any body help please?
>
> Thanks in advance,
>
> Sam
>
>[/color]





*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
robert slaney's Avatar
robert slaney July 21st, 2005 09:10 AM
Guest - n/a Posts
#4: Re: Cannot remove a .NET assembly from GAC


The following was posted by Howard Dierking to resolve this.
-----------------------

I had this same problem -- it had to do with a bug introduced when I
upgraded MSN
Messenger. Anyway, it was resolved by deleting the (default) value for
the following
reg key:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Asse mblies\Global

hth,

_howard

------------------------------

Full article at
http://www.mail-archive.com/advance...op.com/msg03504
.html

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Not the answer you were looking for? Post your question . . .
196,836 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,836 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors