1
Reply

Process.GetProcessesByName giving an error

simmonscarol

simmonscarol

Apr 21 2004 5:11 PM
4.6k
I have a service that has the following line of code in it : Process[] processes = Process.GetProcessesByName(stProcName, localcpu); localcpu is the local computer that the service is running on - stProcName is the process name that I'm checking for. I have file watcher looking at another computer. This line of code is activated after the filewatcher has already done its' thing. The problem I am having is when it goes to execute the above line of code, I get an error stating "cannot access process information on the remote machine". Why and how is it looking at the remote machine. The executable it is checking for resides on the local machine and in the command above, I'm specifying the process name and the local computer name. So why is it looking at the remote machine ? Thanks

Answers (1)