Byte My Data

A personal collection of advice and solutions I've used.

About the author

Something about the author

Uninstall assembly from GAC

The usual way:

    C:\>gacutil.exe /u[f] <assembly name>

If it can't find gacutil.exe, check the %windir%\Microsoft.NET\Framework\v1.1.4322\ directory.

In this command, assembly name is the name of the assembly to uninstall from the GAC. The following example removes an assembly named hello.dll from the GAC.

    gacutil /u "hello,Version=1.0.0.0, Culture=neutral, PublicKeyToken=0123456789ABCDEF"

If you still can't uninstall it, here's a solution from Peter Huang [MSFT] that should work. The original post is at: http://bytes.com/topic/net/answers/49299-uninstall-assembly-gac#post366811

  1. Run cmd in run dialog.
  2. cd %systemroot%\assembly\gac\ClassLibrary1\1.0.1322.2 1592__22df95e3b227e638
  3. (My test dll is ClassLibrary1.dll)
  4. del ClassLibrary1.dll
  5. del __AssemblyInfo__.ini
  6. cd..
  7. rd 1.0.1322.21592__22df95e3b227e638
  8. cd..
  9. rd ClassLibrary1

You may perform the steps above to see if the ClassLibray1 has been removed from the GAC.


Permalink | Comments (0) | Post RSSRSS comment feed

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading