473,769 Members | 2,348 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 20680
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: AcNSMZwrFmsortt 5QS+KAydSrdKI4w ==
|Newsgroups: microsoft.publi c.dotnet.genera l
|Path: cpmsftngxa06.ph x.gbl
|Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:102358
|NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
|X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
|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\C lasses\Installe r\Assemblies\Gl obal\(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_US ER\Software\Mic rosoft\Installe r\Assemblies\Gl obal
Per-machine installations:
HKEY_LOCAL_MACH INE\SOFTWARE\Cl asses\Installer \Assemblies\Glo bal

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: AcNVBfLUciBAdpt PRtidBdMDBYuqgw ==
|Newsgroups: microsoft.publi c.dotnet.genera l
|Path: cpmsftngxa06.ph x.gbl
|Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:102574
|NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
|X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
|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: AcNSMZwrFmsortt 5QS+KAydSrdKI4w ==
|>|Newsgroups: microsoft.publi c.dotnet.genera l
|>|Path: cpmsftngxa06.ph x.gbl
|>|Xref: cpmsftngxa06.ph x.gbl
|microsoft.publ ic.dotnet.gener al:102358
|>|NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
|>|X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|>|
|>|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
2975
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 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...
2
6407
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 to happen we had to change the context in which asp.net runs from machine to SYSTEM by modifying the machine.config file. Under Windows 2003 no matter how asp.net is set to run as either machine or system. I get the following error: ...
2
5790
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 message C:\>gacutil /u myCompany.theAssemblyName.dll Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
3
7222
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 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.dll' WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.Windows.Forms.dll' WARNING: Unable to...
5
374
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 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...
2
2377
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, (which itself derives from System.Windows.Forms.Form) Whenever I try to open on of these forms in the designer, I get an error, stating it is unable to load one or more of the requested types. (Full text at the bottom of this message)
4
6505
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': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded. 'Exactus.UX.Studio.v1.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
0
3490
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 installer types in the <MY_APPLICATION>.dll assembly. --Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. The install package has a Custom Action, but it has always worked fine before. If...
3
2842
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 SayHello method in client. Exception details: "Invalid SOAPAction specified: "http://schemas.microsoft.com/clr/nsassem/RemotingServer.ITestInterface/RemotingClient1#SayHello"" Do we need to do something extra here to use HttpChannel? I have...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10210
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9990
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.