Why can not delete assembly from GAC?

  • Thread starter Thread starter 30906024
  • Start date Start date
3

30906024

I intalled an assembly into GAC by gacutil.exe.
But when i delete it from GAC by gacutil.exe, i got an error message such as
follow:

Assembly: Client.Common, Version=1.0.1.0, Culture=neutral,
PublicKeyToken=01aef4fcc8ad7772, Custom=null
Unable to uninstall: assembly is required by one or more applications
Pending references:
SCHEME: <WINDOWS_INSTALLER> ID: <MSI> DESCRIPTION : <Windows
Installer>

So i want to delete it directely from assembly folder and .net framework
configuration tools, but failed.

So who can tell me why cann't delete assembly from GAC and how to delete it?
 
I am guessing here:
Maybe some program you've installed, declared the assembly as "critical" or
something.
Thus, you'll need to uninstall that program before removing the assembly.

Miha
 
Well, I can't answer that (my uninstall went as it was supposed to),
but I do have something to add to it. Ever since I
installed-then-uninstalled my DLL from the GAC, whenever my dll loads,
it thinks its execution path is \winnt\system32, even tho', I have it
running in another directory and the exe that loads it is also in that
other directory (c:\framework in this case). Anyone seen that and how
I can get around it? yes, there is only one copy of my DLL on my
system. It works fine when I move it to another system that didn't go
thru' the GAC cycle like on my machine. Very annoying.
 
Back
Top