0

I have some code which works on a standard XP system, but fails on XP Embedded test machine.

I get System.Management.ManagementException : Provider Load Failure

Here is my code:

    string query = "Select * From Win32_Printer";
    ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
    ManagementObjectCollection results = searcher.Get();

Are there services to start or DLL's to register?

Please, help me find the answer!

Thanks in advance, Flea

MPelletier
  • 16,256
  • 15
  • 86
  • 137
Flea
  • 1

1 Answers1

0

You must check wich the System.Management.Instrumentation.dll library is properly registered.

try out this link

RRUZ
  • 134,889
  • 20
  • 356
  • 483
  • Hi, thanks for the response! The problem is that I'm working with .NET 2.0 and that library does't exist. – Flea Sep 24 '10 at 13:48