Discussion:
Asynchronous ManagementObjectSearcher.Get()
(too old to reply)
Richard Chandler
2004-02-17 12:32:54 UTC
Permalink
Hi All,

I have a very strange problem and seems to contradict the laws of COM/.Net
and asychronous comms.

I have a scanner that works fine asynchronously on 99.5% of computers. It's
written in C#.

However on a few machines (1 in 500) we experience a problem whereby the
asynchronous Get(...) method of System.Management.ManagementObjectSearcher
locks up trying to initiate the asychronous comms. This leaves my scanner
with some threadpool threads locked up inside this Get(...) call.

I had one remote machine that waited over 20 minutes before giving up
telling me that the problem was something to do with the RPC services (I'm
currently contacting the customer to get the exact HRESULT), but not that
they weren't registered or the machine wasn't available ... something was
keeping it talking but not asynchronously. The others I gave up waiting for
a response from.

But I thought that COM/RPC would give up much sooner than this anyway if the
device wasn't reachable or something was wrong, so is this the WMI subsystem
not fully working

Wbemtest has exactly the same problem on the same remote machine, either
asynchronous or not. I haven't tried wbemtest locally on the remote machine.

The remote machine is an NT 4 box... I'm trying to get more info on the
problem machines and the exact error number ... sorry to be a bit vague at
the moment.

Has anyone come across a problem like this before ... any articles ...
threads ... anywhere ?

Thanks,

Richard
Richard Chandler
2004-02-18 08:45:19 UTC
Permalink
Post by Richard Chandler
Wbemtest has exactly the same problem on the same remote machine, either
asynchronous or not. I haven't tried wbemtest locally on the remote machine.
An update to this ... on the one machine that does respond after 20 minutes,
wbemtest responds with error 0x8001011b( Access is Denied ).

Any ideas why this could be taking 20 minutes ... apparently this is just a
normal desktop machine, not a server, not overloaded, ... ?

Thanks if anyone has anything,

Richard.
Chung-Wei Foong [MSFT]
2004-02-18 19:01:42 UTC
Permalink
Are there any differences between this NT4 machine and the other NT4, if
any, in the mix? e.g. NT4 SP, .NET Framework and WMI versions
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Post by Richard Chandler
Post by Richard Chandler
Wbemtest has exactly the same problem on the same remote machine, either
asynchronous or not. I haven't tried wbemtest locally on the remote
machine.
An update to this ... on the one machine that does respond after 20 minutes,
wbemtest responds with error 0x8001011b( Access is Denied ).
Any ideas why this could be taking 20 minutes ... apparently this is just a
normal desktop machine, not a server, not overloaded, ... ?
Thanks if anyone has anything,
Richard.
Loading...