T
Tom G
I've written a web service to access event logs and to control on/off of
services on my own box. I'm trying to communicate with another system on my
network, but I keep getting 'Cannot open Service Control Manager' when
trying to access Services remotely and 'Windows has not provided an error
code'when trying to access event logs remotely.
The Services error also says '...more privileges may be needed...'.
So, question is what privileges need setting to make this Web Service
communicate with remote machines?
I've been toying with 'Application Pools' under IIS, but no success.
Set up code for Services:
..
..
..
m_cSvcCntrl = new ServiceController( szSvcName, szSysName );
SCPAccess = new ServiceControllerPermissionAccess();
SCPAccess = ServiceControllerPermissionAccess.Control;
SvcPermission = new
ServiceControllerPermission(SCPAccess,"TheOtherServer","TheOtherService");
The documentation I've found 'implies' all you have to do is provide the
machine name and the name of the service or event log you want to access.
There doesn't seem to be any mention of being sure to set this or that
privilege to make it work.
I'd appreciate any input or ideas.
Thanks.
services on my own box. I'm trying to communicate with another system on my
network, but I keep getting 'Cannot open Service Control Manager' when
trying to access Services remotely and 'Windows has not provided an error
code'when trying to access event logs remotely.
The Services error also says '...more privileges may be needed...'.
So, question is what privileges need setting to make this Web Service
communicate with remote machines?
I've been toying with 'Application Pools' under IIS, but no success.
Set up code for Services:
..
..
..
m_cSvcCntrl = new ServiceController( szSvcName, szSysName );
SCPAccess = new ServiceControllerPermissionAccess();
SCPAccess = ServiceControllerPermissionAccess.Control;
SvcPermission = new
ServiceControllerPermission(SCPAccess,"TheOtherServer","TheOtherService");
The documentation I've found 'implies' all you have to do is provide the
machine name and the name of the service or event log you want to access.
There doesn't seem to be any mention of being sure to set this or that
privilege to make it work.
I'd appreciate any input or ideas.
Thanks.