Why can not delete assembly from GAC?

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?
 
M

Miha Markic

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
 
C

Chris Hornberger

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.
 

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