|
| Unable to uninstall assemby from GAC |
 |
Tue, 25 Mar 2008 18:48:28 +000 |
I have windows vista and tried to run following command in the SDK command
prompt to uninstall a dll called TTGTestWebsite.dll
> gacutil /uf TTGTestWebsite
It gives error saying "cannot access the file as it is used by another
process"
>C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0>gacutil /uf
TTGTestWebsite
>Microsoft (R) .NET Global Assembly Cache Utility. Version 2.0.50727.42
>Copyright (c) Microsoft Corporation. All rights reserved.
>Assembly: TTGTestWebsite, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=07156
>012c44abb35, processorArchitecture=MSIL
>Uninstall Failed for: TTGTestWebsite, Version=1.0.0.0, Culture=neutral,
PublicKe
>yToken=07156012c44abb35, processorArchitecture=MSIL
> The process cannot access the file because it is being used by another
process
>.
>Number of assemblies uninstalled = 0
>Number of failures = 1
I closed all my processes and even rebooted my machine. I dont have IIS running
on the machine. Any idea how to uninstall this assembly?
|
| Post Reply
|
| Re: Unable to uninstall assemby from GAC |
 |
Wed, 26 Mar 2008 01:44:18 +000 |
That didn't work either. It gave error saying "Access is denied"
|
| Post Reply
|
| Re: Unable to uninstall assemby from GAC |
 |
Wed, 26 Mar 2008 01:51:48 +000 |
Aah! got it. This is vista specific problem I guess. Its fixed now. I did 2
things but not sure which one did the trick. I rebooted the machine and I
started "SDK command prompt" using "Run as administrator".
This successfully uninstalled the dll. Not sure if rebooting was required.
I guess deleting from c:\windows\assembly would work too as long as the file
explorer was started with administrator privileges.
|
| Post Reply
|
| Re: Unable to uninstall assemby from GAC |
 |
Wed, 26 Mar 2008 02:04:27 +000 |
hmm you could try navigating to the GAC (C:\Windows\Assembly) then find the dll
and hit delete?
|
| Post Reply
|
|
|
|
|
|
|
|
|
|