Web Service Accessing Remote Event Logs

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.
 
J

Jan Tielens

You need to make sure the account which your webservice website is using,
has enough rights to access the remote event logs. Just to make sure you're
having a security issue you could configure your website to use a domain
admin account (since you're accessing remote pc's).
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top