How to uninstall GAC without gacutil
The web server behave differently and after tracing using ProcMon (Process Monitor) I found out that it using dlls from the GAC_MSIL directory. The directory doesn't visible to human eye because it used by the system the read the IL code. Basically the actual dlls' directory is in C:\WINDOWS\assembly. I know that the app use the wrong dlls, it should used the dlls inside bin directory instead. now what?
1. I went to C:\WINDOWS\assembly directory, drag the unwanted dlls to outside of the directory. nothing happen.
2. Right clicked at the unwanted dlls and select uninstall, the I got this message - unable to uninstall: assembly is required by one or more applications.
3. I'm thinking to force uninstall it but there's no gacutil on the client. System admin doesn't allowed .NET Framework SDK installed on the server.
4. Search the knowledge base and found this - http://support.microsoft.com/kb/873195
5. Did exactly instructed in the kb and right click the unwanted dlls, select uninstall and it has gone. sweet.
It just a typical debugging task for developer. But I think I just stuck with the problem for a few hours and this blog hasn't been updated for more that a year.
9 Comments
Comments have been disabled for this content.
dirn said
great solution, however it's a bit nasty when we're required to touch the registry. but hey!! we're developers :)
Yogee said
That is exactly why I wrote a software called Gacbrowser. It removes assembly directory for CLR 2 as well as for latest CLR 4 assemblies. The path for CLR 4 is now at C:\Windows\Microsoft.NET\assembly
OUTfSyHVuWsZuUrci said
ixc1sM Im grateful for the blog. Much obliged.
BtMHelrAkO said
EuBqmc Hey, thanks for the blog.Really looking forward to read more. Keep writing.
Stansberry said
Kudos for that the great piece of writing. I am glad I have taken that the time to read this.
Conroy said
the most common table lamp in this day and age still use incandescent lamp but some of them use compact fluorescent lamps which have been cool to touch..
Macon said
Just wanna comment that you have a very nice internet site , I love the design it really stands out.
qIgMFpbYSfXnEv said
grV7pP Im obliged for the blog article. Really Cool.
fvKmthJqHJ said
7LhDga Major thankies for the blog.Really looking forward to read more. Keep writing.