Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Problem to remove Assembly from GAC?

Reply
Thread Tools

Problem to remove Assembly from GAC?

 
 
owais
Guest
Posts: n/a
 
      12-03-2003
I have problem to remove assembly from the GAC. I used both command line utility Gacutil.exe and Mscorcfg.msc but failed to remove

When using Mscorcfg.msc to delete the selected assembly from the GAC it prompts me an erro

"There was an error removing abc.dll

When I try Gacutil.exe it gives me following erro

C:\Application1\bin\Debug>gacutil /u abc.dl

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

No assemblies found that match: abc.dl

Number of items uninstalled =
Number of failures =

Please help m

Thank
Owai


---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/
 
Reply With Quote
 
 
 
 
Miha Markic
Guest
Posts: n/a
 
      12-03-2003
Hi,

You might go to gac folder itself -windows\assembly\gac (via command prompt)
and delete the folder with the same name as your assembly.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

"owais" <sohail29@-NOSPAM-hotmail.com> wrote in message
news:%...
> I have problem to remove assembly from the GAC. I used both command line

utility Gacutil.exe and Mscorcfg.msc but failed to remove.
>
> When using Mscorcfg.msc to delete the selected assembly from the GAC it

prompts me an error
>
> "There was an error removing abc.dll"
>
> When I try Gacutil.exe it gives me following error
>
> C:\Application1\bin\Debug>gacutil /u abc.dll
>
> Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
> Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
>
> No assemblies found that match: abc.dll
>
> Number of items uninstalled = 0
> Number of failures = 0
>
>
> Please help me
>
> Thanks
> Owais
>
>
> ---
> Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/



 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      12-03-2003

>When I try Gacutil.exe it gives me following error
>
>C:\Application1\bin\Debug>gacutil /u abc.dll


Gacutil /u takes an assembly name, not the original file name. So you
should use

gacutil /u Abc



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
 
Reply With Quote
 
owais
Guest
Posts: n/a
 
      12-04-2003
when I try this it gives following error

gacutil /u ABC

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


Assembly: ABC, Version=1.0.1.1, Culture=neutral, PublicKeyToken=7825b
dd9b5781189, 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

Note: I Install assembly with gacutil /i abc.dll

What should I do?

Thanks a lot

Regards

Owais


---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/
 
Reply With Quote
 
owais
Guest
Posts: n/a
 
      12-05-2003
Thanks a lot for all your help.
But I still fail to uninstall the assembly from GAC.

I try this it gives following error

gacutil /u ABC

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


Assembly: ABC, Version=1.0.1.1, Culture=neutral,
PublicKeyToken=7825b
dd9b5781189, 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


Note: I Install assembly with gacutil /i ABC.dll





Also I try to uninstall Assembly from \Winnt\assembly folder from
Windows
Explorer
it prompts me a message


"Assembly 'ABC' could not be uninstalled because it is required by other

application"


I don't understand which program(s) requires my private assembly


Thanks

Regards
Owais


 
Reply With Quote
 
Mattias Sjögren
Guest
Posts: n/a
 
      12-05-2003

>What should I do?


You're not the first one to see this, the problem is reported fairly
often here. I'm not sure what's causing it, but I believe you can make
it work by removing some Registry entry. If you search these groups on
http://groups.google.com for the error message you should find a bunch
of threads related to this problem.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
jason9364 jason9364 is offline
Junior Member
Join Date: Nov 2007
Posts: 2
 
      08-20-2010
I've had the problem and sorted it out (for me at least). Mine was happening when my installer included a calculated list of dependencies.

if my A.dll depended on B.dll then the installer would install both A.dll and B.dll but it would was only uninstal A.dll. Trying to remove B.dll wouldn't happen without messing about in the registry.

Basically - I always remove all the dependencies in my installers. If it has a dependency I want to install/uninstall then I add it explicitly rather than have it as a dependency - that seems to work.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem calling assembly which references another assembly from an asp page christianhaynes@hotmail.com ASP .Net 3 03-03-2006 04:52 PM
Assembly's manifest definition does not match the assembly reference. Horatiu Margavan via .NET 247 ASP .Net 0 08-30-2004 04:14 PM
ASP.NET 2.0: What is the namespace and assembly name of generated assembly SA ASP .Net 0 08-09-2004 05:09 PM
Referencing assembly from GAC using @assembly fails Brent ASP .Net 1 01-23-2004 08:23 PM
can a strongly named assembly reference a regular assembly? Prasanna Padmanabhan ASP .Net 1 11-19-2003 06:21 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57