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.
The users have verified that the WMI service is running in Automatic mode.
Here’s the exception:
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?
You might want to confirm all the dlls are properly registered (see http://msdn.microsoft.com/en-us/library/bb961987.aspx).