473,396 Members | 2,002 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,396 software developers and data experts.

Unable to remove any assembly from GAC

I have encountered a situation where I am unable to remove
a .NET assembly from the GAC. The message I receive
is "Assembly 'assemblyname' could not be uninstalled
because it is required by other applications." Although I
have seen this before when trying to remove .NET
assemblies that have been installed via an MSI package, I
now get this message while trying to remove any assembly
I've added to the GAC. Using gacutil does not work
either, and I have tried reformatting the machine to no
avail. Yes, amazingly a fresh install of everything
produced the same problem. The only noteworthy point is
that I have both .NET 1.0 (SP2) and 1.1 installed. Has
anyone else seen this and been able to correct it?

Jul 19 '05 #1
2 20574
Hi,

Did you use an .msi package to install the assembly initially? If so then
GacUtil may see that the Windows Installer has a componentcode registration
for the assembly and is not removing it because there is a client
productcode registered as a client and the assembly is pinned. So try
uninstalling the .msi based setup if this was used. The Windows Installer
keeps a pin bit set for each client of the assembly, so if all the pins
have not been removed the GacUtil tool probably cannot remove the assembly.
Once the Installer has removed all clients of the assembly it unpins the
assembly and the CLR cleans up the GAC, or the GacUtil tool can be used.
Best regards,
Bradley Jiang
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
|Content-Class: urn:content-classes:message
|From: "Peter Gomis" <pe*********@pb.com>
|Sender: "Peter Gomis" <pe*********@pb.com>
|Subject: Unable to remove any assembly from GAC
|Date: Thu, 24 Jul 2003 15:19:12 -0700
|Lines: 14
|Message-ID: <03****************************@phx.gbl>
|MIME-Version: 1.0
|Content-Type: text/plain;
| charset="iso-8859-1"
|Content-Transfer-Encoding: 7bit
|X-Newsreader: Microsoft CDO for Windows 2000
|X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
|Thread-Index: AcNSMZwrFmsortt5QS+KAydSrdKI4w==
|Newsgroups: microsoft.public.dotnet.general
|Path: cpmsftngxa06.phx.gbl
|Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102358
|NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
|X-Tomcat-NG: microsoft.public.dotnet.general
|
|I have encountered a situation where I am unable to remove
|a .NET assembly from the GAC. The message I receive
|is "Assembly 'assemblyname' could not be uninstalled
|because it is required by other applications." Although I
|have seen this before when trying to remove .NET
|assemblies that have been installed via an MSI package, I
|now get this message while trying to remove any assembly
|I've added to the GAC. Using gacutil does not work
|either, and I have tried reformatting the machine to no
|avail. Yes, amazingly a fresh install of everything
|produced the same problem. The only noteworthy point is
|that I have both .NET 1.0 (SP2) and 1.1 installed. Has
|anyone else seen this and been able to correct it?
|
|

Jul 19 '05 #2
Hi,

Please back up and delete the corresponding item under following registry
key:

HKLM\Software\Classes\Installer\Assemblies\Global\ (Default)

Check to see if it can be uninstalled with gacutil now.

The Windows Installer references for the GAC are held in the registry in
the
following keys.

Per-user installations:
HKEY_CURRENT_USER\Software\Microsoft\Installer\Ass emblies\Global
Per-machine installations:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Asse mblies\Global

It seems that even we use Gacutil to install this assembly, it still adds
some information to this key. We need to delete this reference and then
uinstall the assembly using gacutil.
Best regards,
Bradley Jiang

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
|Content-Class: urn:content-classes:message
|From: "Peter Gomis" <pe*********@pb.com>
|Sender: "Peter Gomis" <pe*********@pb.com>
|References: <03****************************@phx.gbl>
<R0**************@cpmsftngxa06.phx.gbl>
|Subject: RE: Unable to remove any assembly from GAC
|Date: Mon, 28 Jul 2003 05:44:13 -0700
|Lines: 79
|Message-ID: <06****************************@phx.gbl>
|MIME-Version: 1.0
|Content-Type: text/plain;
| charset="iso-8859-1"
|Content-Transfer-Encoding: 7bit
|X-Newsreader: Microsoft CDO for Windows 2000
|X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
|Thread-Index: AcNVBfLUciBAdptPRtidBdMDBYuqgw==
|Newsgroups: microsoft.public.dotnet.general
|Path: cpmsftngxa06.phx.gbl
|Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102574
|NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
|X-Tomcat-NG: microsoft.public.dotnet.general
|
|I wish that my problem were in fact related to an MSI. As
|I mentioned in the original post, I have this problem with
|any assembly I add and then remove from the GAC. I've
|even created a sample "Hello World" assembly and now
|cannot remove it from the GAC, and it was added via
|gacutil.
|
|>-----Original Message-----
|>Hi,
|>
|>Did you use an .msi package to install the assembly
|initially? If so then
|>GacUtil may see that the Windows Installer has a
|componentcode registration
|>for the assembly and is not removing it because there is
|a client
|>productcode registered as a client and the assembly is
|pinned. So try
|>uninstalling the .msi based setup if this was used. The
|Windows Installer
|>keeps a pin bit set for each client of the assembly, so
|if all the pins
|>have not been removed the GacUtil tool probably cannot
|remove the assembly.
|> Once the Installer has removed all clients of the
|assembly it unpins the
|>assembly and the CLR cleans up the GAC, or the GacUtil
|tool can be used.
|>
|>
|>Best regards,
|>Bradley Jiang
|>
|>
|>This posting is provided "AS IS" with no warranties, and
|confers no rights.
|>--------------------
|>|Content-Class: urn:content-classes:message
|>|From: "Peter Gomis" <pe*********@pb.com>
|>|Sender: "Peter Gomis" <pe*********@pb.com>
|>|Subject: Unable to remove any assembly from GAC
|>|Date: Thu, 24 Jul 2003 15:19:12 -0700
|>|Lines: 14
|>|Message-ID: <03****************************@phx.gbl>
|>|MIME-Version: 1.0
|>|Content-Type: text/plain;
|>| charset="iso-8859-1"
|>|Content-Transfer-Encoding: 7bit
|>|X-Newsreader: Microsoft CDO for Windows 2000
|>|X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
|>|Thread-Index: AcNSMZwrFmsortt5QS+KAydSrdKI4w==
|>|Newsgroups: microsoft.public.dotnet.general
|>|Path: cpmsftngxa06.phx.gbl
|>|Xref: cpmsftngxa06.phx.gbl
|microsoft.public.dotnet.general:102358
|>|NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
|>|X-Tomcat-NG: microsoft.public.dotnet.general
|>|
|>|I have encountered a situation where I am unable to
|remove
|>|a .NET assembly from the GAC. The message I receive
|>|is "Assembly 'assemblyname' could not be uninstalled
|>|because it is required by other applications." Although
|I
|>|have seen this before when trying to remove .NET
|>|assemblies that have been installed via an MSI package,
|I
|>|now get this message while trying to remove any assembly
|>|I've added to the GAC. Using gacutil does not work
|>|either, and I have tried reformatting the machine to no
|>|avail. Yes, amazingly a fresh install of everything
|>|produced the same problem. The only noteworthy point is
|>|that I have both .NET 1.0 (SP2) and 1.1 installed. Has
|>|anyone else seen this and been able to correct it?
|>|
|>|
|>
|>.
|>
|

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bill Chi | last post by:
I have encountered a situation where I am unable to remove a .NET assembly from the GAC. The message I receive is "Assembly 'assemblyname' could not be uninstalled because it is required by other...
2
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this...
2
by: tvaidie | last post by:
Hi all I have two one signing assembly registered in GAC in two different version. I want to remove them but I don't seem able to do so. First I used gacutil.exe, failed with this error...
3
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency...
5
by: Peter Gomis | last post by:
I have encountered a situation where I am unable to remove a .NET assembly from the GAC. The message I receive is "Assembly 'assemblyname' could not be uninstalled because it is required by other...
2
by: Paul Cheetham | last post by:
Hi, I have moved an application from VS2003 to VS2005, and I am now unable to view most of my forms in the designer. The majority of the forms in my project are derived from class PACForm,...
4
by: =?Utf-8?B?SnVhbiBEZW50?= | last post by:
Hi, I am getting the following in a VC++ EXE (using VS2005) that links several C++ DLLs and uses MFC and ATL, when I try to start it under the debugger: ------- 'Exactus.UX.Studio.v1.exe':...
0
by: Monty | last post by:
I have an installation package for my web application which has worked well. After rebuilding the package and running install, I began receiving this error message: Error 1001. Unable to get...
3
by: Ashutosh | last post by:
Hi, Facing issue with HttpChannel....I have always used TcpChannel...using it for the first time.. This code works fine for TcpChannel but gives exception when using HttpChannel on calling the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.