I made a webservice (.asmx) that restarts a Windows service (a Windows service that I wrote “LoggerService”). When I call this service on localhost I have no problem and it works correctly.
But when I call this web service from another computer on the network, I get this exception message:
Cannot open LoggerServiceservice on computer ‘.’.
Access is denied
In IIS I get everyone and full control permissions. But my problem is not solved. How can I get required permissions so that I can restart the Windows service in my web service?
Check the identity of the application pool. The default (network service) will not have access to control services. To test this you can change the user to local system which has full control over the host system, however in a live environment you should create a user that has only the permissions you need.