Unable to uninstall an Assembly from GAC?

家住魔仙堡 提交于 2019-11-27 21:16:38
Pieter Germishuys

Have you considered reading this KB article and trying it out?

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To work around this problem, examine the list of values for the following subkeys in Registry Editor:

HKEY_CURRENT_USER\Software\Microsoft\Installer\Assemblies\Global HKEY_LOCAL_MACHINE\Software\Classes\Installer\Assemblies\Global

If the value for the entry is a Windows Installer descriptor, delete the entry. For example, the value might be a cryptic REG_MULTI_SZ entry that resembles the following: =ysgSC6wx9uiD1dqmmjW>m$!GP^D'A@?z}gn3}lta

Note You must delete the entry. Do not just clear the value of the entry.

The most likely cause of this is that you have installed the log4net assembly via a Windows Installer (msi-package). If that is the case, try to uninstall it using Add/Remove programs.

Jitendra Bansiwal

The following steps helped me to remove Microsoft.ReportViewer.Common,Version=12.0.0,PublicKeyToken=89845dcd8080cc91 from gac

cd %systemroot%\assembly\

From here you may have more that one "gac" directory, so you will have to search within each to find your component.

cd gac_msil
cd <assembly DLL name>
cd <assembly version number>__<public key token>

For example: 12.0.0.0__89845dcd8080cc91

erase *.*

Say "y" to "are you sure".

cd ..
rd <assembly version number>__<public key token>
cd ..
rd <assembly DLL name>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!