473,503 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ExecutionEngineException with WMI

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
..
Nov 15 '05 #1
2 1668
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.

"pat magee" <pa*@thaipaintball.com> wrote in message
news:0a****************************@phx.gbl...
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
.

Nov 15 '05 #2
Are you sure WMI is installed and DCOM enabled on these Win9X boxes?

Willy.

"pat magee" <pa*@thaipaintball.com> wrote in message news:0a****************************@phx.gbl...
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
.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4001
by: John O'Neill | last post by:
Hi I have been having a strange problem with a c# application I have been developing. My application detects when a Pocket PC device has been connected (via ActiveSyc) and queries the registry...
0
1364
by: Benjamin Stutz | last post by:
Hello, if I try to call my function: public static string GetDisplayNameFromPidl(IntPtr Pidl) { SHFILEINFOBYTE fileinfobyte = new SHFILEINFOBYTE(true); try { SHGetFileInfoPidl(
6
3794
by: Magnus Ullberg | last post by:
How do i convert the following structure declaration from c++ to c#? #pragma pack(push,1) //Byte alignment struct TtsrPlayerInfo { int PlayerID; int ChannelID; char NickName; int...
2
2052
by: TT (Tom Tempelaere) | last post by:
Hi people, In my code I get an ExecutionEngineException. I don't know what to do with it, and I can't seem to get rid of it. How can I figure out what is causing it? It always appears on the...
3
3738
by: NormD | last post by:
An exception 'System.ExecutionEngineException' has occurred in servername I have deployed a windows application on a server; I'm running the same on my pc using...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.