WMI Explorer needs to be run with Admministrator Privileges onder Vista.
If not It'll throw a Jit Error.
jos2007-02-19 12:52:47
WMI Explorer on Vista
WMI Explorer on Vista
That's primarily because of the default permissions on the WMI repository and in .NET access control. Unfortunately it's - as you note - a compile error, and not one that the code can even really trap for, since the error is being thrown prior to any real code being executed. You can also modify your WMI repository permissions if you want to run as another user, or modify the .NET Framework access control for that assembly.