473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 8154
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...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.