Unregistering Assemblies From The GAC

S

Scott M.

I have been trying to uninstall an assembly from the GAC using
gacutil.exe -u but with no luck. Can anyone give me more information on how
to successfully uninstall from the GAC?

Also, how can an assembly be removed from the GAC when the assembly is no
longer resident on the machine?

Lastly, what must be done to get GAC registered assemblies to show up on
the .NET assembly list within VS .NET so that one does not have to browse
for the assembly?
 
M

Mattias Sjögren

Scott,
I have been trying to uninstall an assembly from the GAC using
gacutil.exe -u but with no luck. Can anyone give me more information on how
to successfully uninstall from the GAC?

What happens when you try it?

Also, how can an assembly be removed from the GAC when the assembly is no
longer resident on the machine?

You don't need an extra copy of the assembly to uninstall if tom the
GAC, so that shouldn't be a problem.

Lastly, what must be done to get GAC registered assemblies to show up on
the .NET assembly list within VS .NET so that one does not have to browse
for the assembly?

INFO: How to Display an Assembly in the Add Reference Dialog Box
http://support.microsoft.com/?kbid=306149



Mattias
 
S

Scott M.

When I run the gacutil -u and then the assembly path, a command window pops
up and indicates that the assembly could not be found (although it is
there). I've also tried passing the strong name value as well as the
version in gacutil with the same results.
 
S

Steven Cheng[MSFT]

Hi Scott,

As for the assembly installed in GAC, they'll be represented by their
Assembly Name for example, if we install the
MyAsm.dll into GAC, then if you go to the "%System%\Assembly\" folder ,
you'll find it listed in all the registered assemblies and it is without
its exention, is named "MyAsm" rather than "MyAsm.dll".

In fact, you can manually delete the assembly from GAC via right click it
in the %System%\Assembly\ folder and choose "delete" menu in the right
click context menu. But we recommend that you use the GacUtil.exe, to use
GacUtil to remove an assembly, you needn't to specify its path(since it's
installed in gac) and we should speicfy its name (without the ".dll"
extention). For example, after we use

GacUtil -i F:\Asms\MyAsm.dll

We can use
CacUtil -u MyAsm to remove it.

And below are the related reference on dealing with assemblies in GAC in
MSDN:
#Removing an Assembly from the Global Assembly Cache
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconremovingassemblyfr
omglobalassemblycache.asp?frame=true

#Working with Assemblies and the Global Assembly Cache
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconworkingwithassembl
iesglobalassemblycache.asp?frame=true

Please also have a view. Hope helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 

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