D
Denis Brkljacic
Hi,
I have made some simple ASP.NET (C#) application, that somewhere uses this
command:
Process [] aProcesses = Process.GetProcesses(Environment.MachineName);
This command purpose is to find some proccess on local machine and do
something. This works perfect on the machine (XP) where I have been
developing this app!
But then, when I copied my application on some other machine (Win2k), it
reports the error on this line, saying:
System.ComponentModel.Win32Exception: Access is denied
This is really strange, because it seems to grab the proccesses from the
remote machine (what is totally wrong, this should list the proccesses from
local machine). And the code is just copied from XP where this works fine.
Please if anybody can help me out with this...
Thanks,
/Denis
I have made some simple ASP.NET (C#) application, that somewhere uses this
command:
Process [] aProcesses = Process.GetProcesses(Environment.MachineName);
This command purpose is to find some proccess on local machine and do
something. This works perfect on the machine (XP) where I have been
developing this app!
But then, when I copied my application on some other machine (Win2k), it
reports the error on this line, saying:
System.ComponentModel.Win32Exception: Access is denied
This is really strange, because it seems to grab the proccesses from the
remote machine (what is totally wrong, this should list the proccesses from
local machine). And the code is just copied from XP where this works fine.
Please if anybody can help me out with this...
Thanks,
/Denis