错误 (MMC 检测到管理单元中的错误,并在尝试在基于 Windows 7 或 Windows Server 2008 R2 的计算机上启动 VAMT 3.0 时将其卸载)
本文可帮助修复错误 (MMC 检测到管理单元中的错误,并在尝试在基于 Windows 7 或 Windows Server 2008 R2 的计算机上启动 批量激活管理工具 (VAMT) 3.0 时将其) 卸载。
适用于:Windows 7 Service Pack 1,Windows Server 2012 R2
原始 KB 编号: 2817142
症状
在运行 Windows 7 或 Windows Server 2008 R2 的计算机上,尝试启动 VAMT 3.0 时,它可能会失败。 此外,还可能会收到以下错误消息:
MMC 检测到管理单元中的错误,并将卸载该管理单元
然后,系统会提示两个选项:
- 向 Microsoft 报告此错误,然后关闭 MMC。
- 卸载管理单元并继续运行。
如果选择了第二个选项,可能会收到类似于以下内容的错误消息:
托管代码管理单元中的未经处理的异常
FX:{6FBE5D92-C65A-41DC-AEBF-09D8845F68A1}
调用的目标已引发异常异常类型:
System.Reflection.TargetInvocationException
异常堆栈跟踪:
at System.RuntimeTypeHandle.CreateInstance (RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow (boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl (Boolean publicOnly、Boolean skipVisibilityChecks、Boolean fillCache)
at System.Activator.CreateInstance (Type 类型,boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl (BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activationor.CreateInstance (Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activationor.CreateInstance (String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activator.CreateInstance (String assemblyName、String typeName)
at System.AppDomain.CreateInstance (String assemblyName、String typeName)
at System.AppDomain.CreateInstanceAndUnwrap (String assemblyName、String typeName)
at Microsoft.ManagementConsole.Internal.SnapInClient.CreateSnapIn (String assemblyName,String typeName)
at Microsoft.ManagementConsole.Internal.ClassLibraryServices.Microsoft.ManagementConsole.Internal.IClassLibraryServices.CreateSnapIn (String assemblyName,String typeName)
at Microsoft.ManagementConsole.Internal.IClassLibraryServices.CreateSnapIn (String assemblyName、String typeName)
at Microsoft.ManagementConsole.Executive.SnapInApplication.CreateSnapIn (String snapInAqn)
at Microsoft.ManagementConsole.Executive.SnapInInitializationOperation.CreateSnapIn ()
at Microsoft.ManagementConsole.Executive.Operation.OnThreadTransfer (SimpleOperationCallback 回调)
原因
如果你未在 Windows 7 或 Windows Server 2008 R2 中安装 .NET Framework 3.5.1 功能,则可能会出现此问题。
解决方案
若要解决此问题,需要使用以下步骤安装 .NET Framework 3.5.1:
在基于 Windows 7 的计算机上
- 单击“开始”按钮,然后单击“控制面板”。
- 选择“ 程序”。
- 在 “程序和功能”下,选择“ 打开或关闭 Windows 功能”。
- 选择 Microsoft .NET Framework 3.5.1 旁边的检查框。
- 单击“ 确定”。
在基于 Windows Server 2008 R2 的计算机上
- 打开服务器管理器。
- 右键单击“ 功能 ”,然后选择“ 添加功能”。
- 展开 .NET Framework 3.5.1 功能。
- 选择.NET Framework 3.5.1 旁边的检查框
- 单击“ 安装”。
References
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈