Some Services stop automatically if they are not in use by other services

Viewed 114601

Error "SOME SERVICES STOP AUTOMATICALLY IF THEY ARE NOT IN USE BY OTHER SERVICES" while trying to start a windows service.

I have a service that does not use the windows service config file and uses static properties - it works fine

Now, i make use of app.config file and rebuild my setup project + the service project. Now i install the service and then try to start the service - i get the following error:

SOME SERVICES STOP AUTOMATICALLY IF THEY ARE NOT IN USE BY OTHER SERVICES

Service logs on as local system.

Any input is welcome please! Thanks.

7 Answers

I could fix this by adjusting the service properties.

I noticed that all of the other working services were using "Local System" as "Log On As", but the service having issue was using "Local Service". You can fix this by going to the list of services, right click on desired service, click properties on context menu and then change "Log On As" to "Local system account" if it is not the same as shown in below image.

enter image description here

I had the same error that was due to dll's not being created when running the installUtil.cmd on my serviceInstaller.msi. To fix this I had to include one of these => <File Id="Interception" Source="$(var.SourceDir)\Microsoft.Practices.Unity.Interception.dll" /> for each dll I was expecting in my project and place it in my Service.wxs file. Like this => <Fragment><DirectoryRef Id="ApplicationDirectory"><Component Id="ServiceID" Guid="$(var.ServiceGuid)"> *here* <closing tags...>. And make sure that all the dll's are included in the installers x copy commands :)

Hope this helps!

I got the same error while starting the service. when i go and checked application logs,the error is related to telnet.It means the port for telnet(23) is engaged by another service,That time need to go resource manager and check for the service which is using 23 port and disable that service then the respective service able to start without any issues.

The Windows Search service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

Check this out.

Facing the same issue, i was using my IP in binding and it got updated after which started getting this exception. Updated it with my host name instead of IP to avoid future case

Related