praveen1981
asked on
service stopping
Hi
I want to stop the service which is running on the remote machine , it contains only administrative access
I am using the following code
ServiceController sc = new ServiceController("Receive Service", "1.1.1.141");
if (sc.Status.Equals(ServiceC ontrollerS tatus.Runn ing))
sc.Stop();
but is giving me the error as follows
//Cannot open Service Control Manager on computer '1.1.1.141'. This operation might require other privileges.
can you please guide me how to go ahead.I am using c#.net not asp.net
I want to stop the service which is running on the remote machine , it contains only administrative access
I am using the following code
ServiceController sc = new ServiceController("Receive
if (sc.Status.Equals(ServiceC
sc.Stop();
but is giving me the error as follows
//Cannot open Service Control Manager on computer '1.1.1.141'. This operation might require other privileges.
can you please guide me how to go ahead.I am using c#.net not asp.net
ASKER
Hi
here .NET code is running under the user machine and services is running on the remote machine which contains with admin previlages , so now the code which is running on the user machine want to stop the services which is running on remote machine..
can you please guide me..
here .NET code is running under the user machine and services is running on the remote machine which contains with admin previlages , so now the code which is running on the user machine want to stop the services which is running on remote machine..
can you please guide me..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it solved the problem.
In other words:
Does your user's network privileges able to access the Service Control Manager on the Server. Ask your network admin to give your user priviledge to stop services(TCUniversalServer