HighTechTalks DotNet Forums  

GAC problem -- can't remove an assembly

Dotnet Framework microsoft.public.dotnet.framework


Discuss GAC problem -- can't remove an assembly in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Schemer
 
Posts: n/a

Default GAC problem -- can't remove an assembly - 06-20-2006 , 12:27 PM






Hello,

gacutil -l shows this entry:

Digger.Backhoe.dll,Version=1.0.0.75,Culture=neutra l,PublicKeyToken=1111111111111111

When I try to remove it, I get an error:

C:\...\Dev]gacutil -uf
Digger.Backhoe.dll,Version=1.0.0.75,Culture=neutra l,PublicKeyToken=1111111111111111

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:
Digger.Backhoe.dll,Version=1.0.0.75,Culture=neutra l,PublicKeyToken=1111111111111111

Number of items uninstalled = 0
Number of failures = 0

[C:\...\Dev]

What's going on?
Thanks for any insights...




Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default RE: GAC problem -- can't remove an assembly - 06-20-2006 , 10:33 PM






Hi Schemer,

Thanks for your post!

Based on your gacutil.exe output, I assume that you are using .Net1.1
runtime.

I have done some test regarding your scenairo. I first installed a signed
test assembly "hidetabpage" into the GAC. Then I performed the same steps
as you:

G:\>gacutil -l hidetabpage

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

The Global Assembly Cache contains the following assemblies:
hidetabpage, Version=1.0.2363.18720, Culture=neutral,
PublicKeyToken=
5ef963a156363, Custom=null

The cache of ngen files contains the following entries:

Number of items = 1

G:\>gacutil -uf "hidetabpage, Version=1.0.2363.18720, Culture=neutral,
Public
Token=83d5ef963a156363, Custom=null"

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


Assembly: hidetabpage, Version=1.0.2363.18720, Culture=neutral,
PublicKeyToke
3d5ef963a156363, Custom=null
Uninstalled: hidetabpage, Version=1.0.2363.18720, Culture=neutral,
PublicKeyT
n=83d5ef963a156363, Custom=null

Number of items uninstalled = 1
Number of failures = 0

It seems that these steps work well on my side.

Have you tried to use view your assembly in "C:\WINDOWS\assembly" directory
and use shell context menu to uninstall it? That is you may right click
your assembly and choose "Uninstall" menu item.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
  #3  
Old   
Schemer
 
Posts: n/a

Default Re: GAC problem -- can't remove an assembly - 06-21-2006 , 07:09 AM



Thanks for the reply.
When I tried to uninstall from Explorer, I get the message that it can't be
uninstalled "because it is required by other applications".
Is there any way to find out what apps use a particular version of an
assembly?
Thanks.

Quote:
It seems that these steps work well on my side.

Have you tried to use view your assembly in "C:\WINDOWS\assembly"
directory
and use shell context menu to uninstall it? That is you may right click
your assembly and choose "Uninstall" menu item.




Reply With Quote
  #4  
Old   
Simon Hart
 
Posts: n/a

Default Re: GAC problem -- can't remove an assembly - 06-21-2006 , 11:38 AM



Hi,

Has this assembly been installed via InstallShield by any chance?

Regards
Simon.

"Schemer" <jumper (AT) nospam (DOT) nospam> wrote

Quote:
Thanks for the reply.
When I tried to uninstall from Explorer, I get the message that it can't
be uninstalled "because it is required by other applications".
Is there any way to find out what apps use a particular version of an
assembly?
Thanks.

It seems that these steps work well on my side.

Have you tried to use view your assembly in "C:\WINDOWS\assembly"
directory
and use shell context menu to uninstall it? That is you may right click
your assembly and choose "Uninstall" menu item.






Reply With Quote
  #5  
Old   
Schemer
 
Posts: n/a

Default Re: GAC problem -- can't remove an assembly - 06-21-2006 , 12:09 PM



Quote:
Has this assembly been installed via InstallShield by any chance?

Possibly, but I'm not sure.




Reply With Quote
  #6  
Old   
Schemer
 
Posts: n/a

Default Re: GAC problem -- can't remove an assembly - 06-21-2006 , 12:37 PM




Quote:
Has this assembly been installed via InstallShield by any chance?

I found the app that installed the assembly, and its uninstaller remved it.

Thanks for all the responses.




Reply With Quote
  #7  
Old   
AT
 
Posts: n/a

Default Re: GAC problem -- can't remove an assembly - 06-21-2006 , 11:07 PM



Hi Schemer,

I am glad you finally resolved this problem :-) I still want to share some
information with you:

To find out which process is currently locking a file, Process Explorer or
Handle.exe from www.sysinternals.com are useful. You may use "Handle.exe
your_filepath" to find out which process is currently openning your file.
(remove your_filepath with the GAC assembly absolute path). For more
information, please refer to:
http://www.sysinternals.com/Utilities/Handle.html

Hope this information helps!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.