469,954 Members | 1,755 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,954 developers. It's quick & easy.

Unregistering Assemblies From The GAC

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?
Jul 21 '05 #1
8 7809
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #2
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #3
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.

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:uc**************@TK2MSFTNGP11.phx.gbl...
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 howto 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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Jul 21 '05 #4
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.

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:uc**************@TK2MSFTNGP11.phx.gbl...
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 howto 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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Jul 21 '05 #5
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...vingassemblyfr
omglobalassemblycache.asp?frame=true

#Working with Assemblies and the Global Assembly Cache
http://msdn.microsoft.com/library/en...ingwithassembl
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


Jul 21 '05 #6
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...vingassemblyfr
omglobalassemblycache.asp?frame=true

#Working with Assemblies and the Global Assembly Cache
http://msdn.microsoft.com/library/en...ingwithassembl
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


Jul 21 '05 #7
Hi Scott,

Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you have anything unclear or if
there're anything else we can help, please feel free to post here. 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

Jul 21 '05 #8
Hi Scott,

Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you have anything unclear or if
there're anything else we can help, please feel free to post here. 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

Jul 21 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Saso Zagoranski | last post: by
8 posts views Thread by Scott M. | last post: by
3 posts views Thread by Claudio Pacciarini | last post: by
4 posts views Thread by illegal.prime | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.