Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / August 2003

Tip: Looking for answers? Try searching our database.

Unable to uninstall assemblies from the global assembly cache...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill_ND - 29 Jul 2003 19:10 GMT
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.  Has
anyone else seen this and been able to correct it?

Is this related to trying to run multiple versions of the .NET framework on the same machine?

Here is example error message:
D:\gacutil /u ndirect.config

Unable to uninstall:  assembly is required by one or more applications
Pending references:
   Scheme: <WINDOWS_INSTALLER>  ID: <MSI>  DESCRIPTION: <Windows Installer>

Interesting thing with the message above, the assembly referenced here was never installed through MSI.

Bill_ND
Jian-Shen Lin[MS] - 01 Aug 2003 08:01 GMT
That means the assembly is installed by a msi package.you can try to remove
this assembly anyway, use the /uf switch on gacutil

Ideally, .  this case you need uninstall the assembly using the msi
package. Gacutil.exe does not let you uninstall assemblies that have been
installed and refcounted by Windows Installer.

Thanks

Jian Shen

This posting is provided "AS IS" with no warranties, and confers no rights.
Bill C - 01 Aug 2003 18:40 GMT
The assemblies I've added to the GAC are not installed with an msi package.

They were added using the following from command prompt:  gacutil /i
<assemblyname>.

Now they are not removable from the GAC.  This is a specific example of
assemblies that have nothing to do with MSI.  So my question is how can we
remove these "orphaned" assemblies?  There were 4-5 posts on this that I
noticed with no real solution so far to this particular scenario.

billc.
ndnet

> That means the assembly is installed by a msi package.you can try to remove
> this assembly anyway, use the /uf switch on gacutil
[quoted text clipped - 8 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
Bill C - 01 Aug 2003 19:09 GMT
Also, gacutil /uf does not release the assembly.  It refuses to be removed
and gives the same error message.

Trying to remove the assembly through Windows Explorer view also does not
allow it to be deleted from the GAC.

bill c
ndnet

> That means the assembly is installed by a msi package.you can try to remove
> this assembly anyway, use the /uf switch on gacutil
[quoted text clipped - 8 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.