无法从GAC卸载程序集?

时间:2021-01-09 02:46:43

I am unable to uninstall an Assembly (log4net.dll) from GAC. It is giving following error.

我无法从GAC卸载程序集(log4net.dll)。它给出了以下错误。

"Assembly is required by one or more applications".

“一个或多个申请需要组装”。

However if I search the Assembly using ProcessExplorer nothing comes up? How can I remove this Assembly from GAC?

但是,如果我使用ProcessExplorer搜索程序集,则不会出现任何问题?如何从GAC中删除此程序集?

2 个解决方案

#1


25  

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.

警告:如果使用注册表编辑器或其他方法错误地修改了注册表,则可能会出现严重问题。这些问题可能需要您重新安装操作系统。 Microsoft无法保证可以解决这些问题。修改注册表需要您自担风险。

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

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

如果条目的值是Windows Installer描述符,请删除该条目。例如,该值可能是一个神秘的REG_MULTI_SZ条目,类似于以下内容:= ysgSC6wx9uiD1dqmmjW> m $!GP ^ D'A @?z} gn3} lta

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

注意您必须删除该条目。不要只清除条目的值。

#2


6  

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.

最可能的原因是您已通过Windows Installer(msi-package)安装了log4net程序集。如果是这种情况,请尝试使用“添加/删除程序”将其卸载。

#1


25  

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.

警告:如果使用注册表编辑器或其他方法错误地修改了注册表,则可能会出现严重问题。这些问题可能需要您重新安装操作系统。 Microsoft无法保证可以解决这些问题。修改注册表需要您自担风险。

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

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

如果条目的值是Windows Installer描述符,请删除该条目。例如,该值可能是一个神秘的REG_MULTI_SZ条目,类似于以下内容:= ysgSC6wx9uiD1dqmmjW> m $!GP ^ D'A @?z} gn3} lta

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

注意您必须删除该条目。不要只清除条目的值。

#2


6  

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.

最可能的原因是您已通过Windows Installer(msi-package)安装了log4net程序集。如果是这种情况,请尝试使用“添加/删除程序”将其卸载。