Can't delete assembly from GAC in Windows 2003 with Framework 2.0

  • Thread starter Thread starter Diego F.
  • Start date Start date
D

Diego F.

I can't delete an assembly from GAC. I'm trying to delete from Framework 2.0
configuration tool, but I'm getting an error: Error deleting assembly.

How can I remove it?

I get also an error when trying to change the assembly trust with the
wizard: Unable to load assembly.

Is this a framework 2.0 bug?
 
No. How do I use that tool? I tried using:
regasm "my library.dll" /unregister, but it doesn't find the libray.
 
I think he meant the "unregistering tool whatever it is"...
refering you to:
C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Bin\StartTools.htm

And then you'll undestand he was speaking of: gacutil.exe
 
Usage: Gacutil <command> [ <options> ]
Commands:

/u <assembly_name> [ /r <...> ]
Uninstalls an assembly. <assembly_name> is the name of the assembly
(partial or fully qualified) to remove from the Global Assembly Cache.
If a partial name is specified all matching assemblies will be
uninstalled.
Example:
/u myDll,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23ab
/r FILEPATH c:\projects\myapp.exe "My App"

/uf <assembly_name>
Forces uninstall of an assembly by removing all traced references.
<assembly_name> is the full name of the assembly to remove. Assembly will
be removed unless referenced by Windows Installer.
! Warning: use the /uf command with care as applications may fail to run !
Example: /uf
myDll,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23a
b

/ul <assembly_list_file> [ /r <...> ]
Uninstalls one or more assemblies from the global assembly cache.
<assembly_list_file> is the path to a text file that contains a list of
assembly names. Individual names in the text file must be
separated by CR/LF.
Example: /ul myAssemblyList.txt /r FILEPATH c:\projects\myapp.exe "My App"
myAssemblyList.txt content:
myDll,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23ab
myDll2,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23ab

/ungen <assembly_name>
Uninstalls a native image installed via the NGEN utility. <assembly_name>
is the name of the assembly for which native images are to be uninstalled.
The assembly itself will remain in the global assembly cache.
Example: /ungen myDll


Hope this helps.
Regards
Sam
 
Back
Top