GAC problem -- can't remove an assembly

S

Schemer

Hello,

gacutil -l shows this entry:

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

Number of items uninstalled = 0
Number of failures = 0

[C:\...\Dev]

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

Jeffrey Tan[MSFT]

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.
 
S

Schemer

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.
 
S

Simon Hart

Hi,

Has this assembly been installed via InstallShield by any chance?

Regards
Simon.
 
S

Schemer

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.
 
J

Jeffrey Tan[MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top