问题描述
我使用WMI来收集系统信息。它工作正常,每个系统我已经测试了,但我有被报告的问题一个或两个用户。调试日志显示WMI code抛出一个提供程序加载失败的异常。我一直无法复制的问题。
I'm using WMI to collect system information. It works fine on every system I've tested it on, but I have one or two users that are reporting problems. The debug logs show the WMI code is throwing a "Provider load failure" exception. I haven't been able to replicate the issue.
该用户已验证WMI服务是在自动模式下运行。
The users have verified that the WMI service is running in Automatic mode.
下面是例外:
System.Management.ManagementException: Provider load failure
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
在如何诊断和解决这个问题有什么想法?
Any thoughts on how to troubleshoot and resolve this issue?
推荐答案
您可能需要确认所有正确注册的dll文件(见的)。
You might want to confirm all the dlls are properly registered (see http://msdn.microsoft.com/en-us/library/bb961987.aspx).
这篇关于我该如何解决"提供程序加载失败" WMI的请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!