472,358 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,358 software developers and data experts.

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 7976
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Les Caudle | last post by:
After removing the .NET Framework (so that I can install the 1.1 Framework), I get the following error msg in the event log: The description for Event ID ( 1071 ) in Source ( ASP.NET 1.0.3705.288...
6
by: Tom Dacon | last post by:
If you're not putting assemblies in the GAC, but are referencing shared code with copylocal=true into the projects that use them, is there any value to signing the assemblies? In the environment...
1
by: Afaq | last post by:
Hi, After adding large number of empty resource files (which will be updated later), we are not able to compile the project. the following is the output of the build process. It fails while...
6
by: Saso Zagoranski | last post by:
Hi! How can I unregister all the events registered to a control? I have seen a piece of code in another thread, which gets all the registered handlers for a specific event. Let's say I have a...
1
by: | last post by:
Hi all I am using RegAsm.exe to register .NET assemblies like this: regasm D:\...\...\MyDLL.dll /tlb:d:\mybin\MyDLL.tlb for unregistering: regasm D:\...\...\MyDLL.dll /tlb:d:\mybin\MyDLL.tlb...
8
by: Charles Law | last post by:
I'm sorry to keep harping on about this one, but it is really quite important for me to be able to list _all_ required assemblies in my Help About box. Herfried kindly posted some code before that...
8
by: Scott M. | last post by:
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...
3
by: Claudio Pacciarini | last post by:
Hi everyone, I have a question about .NET code sharing and reuse, and also about application design best practices / guidelines. Currently, we have many different .NET projects in source...
4
by: illegal.prime | last post by:
Hi all, I'm getting unexpected results when trying to preload assemblies into an AppDomain I'm creating. Upon creation of the AppDomain - I attach an AssemblyResolve to both my current AppDomain...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.