ExecutionEngineException with WMI

P

pat magee

have written an app to query a heterogenous network of
Win98/WinME/XP/Win2000 machines. I can connect to WMI
using the WMI CIM Studio but I get an
ExecutionEngineException whenever I try to connect to a
Win98 box from C# code. The following snippet works fine
when run on Win2000/XP clients, but throws the
ExecutionEngineException from Win9x boxes:

ManagementObjectSearcher query;
ManagementObjectCollection qColl;
ManagementScope ms = new ManagementScope
("\\\\<machinename>\\root\\cimv2");
ObjectQuery oq;

oq = new ObjectQuery("SELECT * FROM Win32_ComputerSystem");

try{
query = new ManagementObjectSearcher(ms, oq);
}
catch(Exception e)
{
// whatever
}

I have tried all different combinations of impersonation
and authority levels but nothing seems to work. According
to the .NET docs it should never throw these exceptions
anyway, so whats up? any ideas?

I'm using VS.NET with version 1.4 of the .NET framwork. OS
is Win2k, clients running Win98 4.10 2222A
..
 
H

Horatiu Ripa

Facing the same problem.

--
Horatiu Ripa
Software Development Manager
Business Logic Systems LTD
21 Victor Babes str., 1st floor, 3400 Cluj-Napoca, Romania
Phone/Fax: +40 264 590703
Web: www.businesslogic.co.uk

This email (email message and any attachments) is strictly confidential,
possibly privileged and is intended solely for the person or organization to
whom it is addressed. If you are not the intended recipient, you must not
copy, distribute or take any action in reliance on it. If you have received
this email in error, please inform the sender immediately before deleting
it. Business Logic Systems Ltd accepts no responsibility for any advice,
opinion, conclusion or other information contained in this email or arising
from its disclosure.
 
W

Willy Denoyette [MVP]

Are you sure WMI is installed and DCOM enabled on these Win9X boxes?

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top