Problems problems problems with GetProcessesByName(ProcessName,this.IPAddress)

  • Thread starter Thread starter Arne Janning
  • Start date Start date
A

Arne Janning

Lord said:
I posted this recently and no one responded so I am wondering if there are
any guru's out there whould could help me:




Anyone help with this I am pretty lost and I can't seem to find anything on
Microsoft regarding it, which is mad as you would think that microsoft in
their infinate wisdom would have details regarding all exceptions.

:oS well confused......

Process.GetProcessesByName() wants two parameters:
processName and
*machineName*.

this.IPAdress certainly is not a machineName. Try to resolve the
IP-address using the Helper-Classes in System.Net.

Cheers

Arne Janning
 
Hi All

I posted this recently and no one responded so I am wondering if there are
any guru's out there whould could help me:
I keep getting the above message when using
GetProcessesByName(ProcessName,this.IPAddress)

Does anyone know why?

Anyone help with this I am pretty lost and I can't seem to find anything on
Microsoft regarding it, which is mad as you would think that microsoft in
their infinate wisdom would have details regarding all exceptions.

:oS well confused......
--
Ian (Freebasing On Boredom.......)

BEING IN THERAPY
And yet, having therapy is very much like making love to a beautiful
woman. You... get on the couch, string 'em along with some half-lies and
evasions, probe some deep dark holes, and then hand over all your
money.
 
Hi,
1) Did you try the method without the processName parameter like on the MSDN
?
// Get all processes running on the remote computer.
Process [] ipByName = Process.GetProcessesByName("192.168.1.41");


2) Could you get any known exception?

Good Luck
Adnan
 
Process.GetProcessesByName() wants two parameters:
processName and
*machineName*.

this.IPAdress certainly is not a machineName. Try to resolve the
IP-address using the Helper-Classes in System.Net.

Cheers

Arne Janning

Thanks for the quick response but I have had plenty of success by using the
IPAddress and as the machine I am trying to get a the process details off
has had network browsing desabled I can only use the IPAddress.

Ian
 
I have just read that it might have something todo with having the
performance counters disabled so heres hoping

Ian
 
in message
Hiya

I have captured the exception and its inner exception the inner exception
is:

System.InvalidOperationException
with the message - The network path was not found
and the main exception gives me the above message.

I know that I am passing in the correct IP address. I am thinking that this
going to turn out to be some sort of security related problem :(

Thanks

Ian
Hi,
1) Did you try the method without the processName parameter like on the MSDN
?
// Get all processes running on the remote computer.
Process [] ipByName = Process.GetProcessesByName("192.168.1.41");


2) Could you get any known exception?

Good Luck
Adnan


Lord Fonty said:
in message there
are anything microsoft
in

Thanks for the quick response but I have had plenty of success by using the
IPAddress and as the machine I am trying to get a the process details off
has had network browsing desabled I can only use the IPAddress.

Ian
 

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

Back
Top