Thanks for the tip.

The (dangling?) reference appears not to have been removed by the windows
installer when the package was uninstalled. I suspect that this is somehow
related to the fact that I had previously installed the assembly into the
GAC on the same machine using gacutil. I built a deploment project and then
tested it on the same machine - apparently a no no, according to certain
MSDN references.

regards

-----Original Message-----
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Beck,Mikhail
Sent: 07 January 2004 06:49
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] Removing a referenced assembly from the
GAC


You can remove a reference to the assembly from the following key in the
registry:

HKEY_CLASSES_ROOT\Installer\Assemblies\Global

The better way of cause is to uninstall the package that has dropped this
assembly into GAC.

Mikhail Beck


-----Original Message-----
From: Ross Diesel [mailto:[EMAIL PROTECTED]
Sent: 07 January 2004 15:15
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] Removing a referenced assembly from the GAC


Hi

How would one go about removing a referenced assembly from the GAC if the
referencing app is the windows installer?

C:\>gacutil /u Microsoft.ApplicationBlocks.ExceptionManagement

Microsoft (R) .NET Global Assembly Cache Utility.  Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.


Assembly: Microsoft.ApplicationBlocks.ExceptionManagement,
Version=1.0.1453.1709
5, Culture=neutral, PublicKeyToken=fe948a0bc7989604, Custom=null
Unable to uninstall: assembly is required by one or more applications
Pending references:
              SCHEME: <WINDOWS_INSTALLER>  ID: <MSI>  DESCRIPTION : <Windows
Ins
taller>

Number of items uninstalled = 0
Number of failures = 0

Further info...

* the assembly was originally registered using gacutil /i, subsequently a
referencing deployment project was created, installed and uninstalled using
windows installer.

* there is a /uf switch which forces removal of referenced assemblies except
if the ref happens to be windows installer ;-(

regards

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

_____________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning
Services - powered by MessageLabs. For further information visit
http://www.mci.com

***********************************************************************
This email is confidential and intended solely for the use of the individual
to whom it is addressed. Any views or opinions presented are solely those of
the author and do not necessarily represent those of the BOC Group plc or
any of its affiliates. If you are not the intended recipient, be advised
that you have received this email in error and that any use, dissemination,
forwarding, printing, or copying of this email is strictly prohibited. If
you have received this email in error please return the message to the
sender by replying to it and then delete the message from your computer.

This footnote also confirms that this email message has been checked by
anti-virus software for the presence of computer viruses. However, the BOC
Group plc or any of its affiliates accepts no responsibility for any virus
or defect that might arise from opening this e-mail or attachments.

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to