Recently i have created a Windows service,then i have installed on my windows7 machine.
When i tried start the service i got the follwing error.
“The Service on local computer started and then stopped ,Some services stop automatically if there are not in use by other services or programs.”
I gone through the problem i have tried so many ways to get out of the problem finally i got the solution as follows.
1) Click Run Command from start buttin
2) Enter Services.msc then click OK,you will get all the services in your computer.
3) Select your service and right click on the service and select Properties
4) Goto Logon Properties à select Local System Account then click OK
Now try to start you service you will success.



Thanks Boss ........... Nice solution ... Its working for me ......... and I was searching this from one week..
ReplyDeleteThanks again .....
Akhil
I followed these steps but doesn’t seems to be solving my problem. I have a 32bit and 64bit xp supported setup file for imagelan, and am willing to install on win7 as there are no other versions available, the setup for 32bit completes successfully and lists down the service, but am getting this same error even after following these steps.
ReplyDeleteMay be you doesn't have proper rights for the database/file that service depends,and Check
ReplyDeleteif you have enough disk space where the service is installed and also try to clear Event Logs
Look at this URL to clear Event Logs
http://technet.microsoft.com/en-us/library/cc722318.aspx
Hi,
ReplyDeleteI have this similar issue as well, tried your solution but doesn't solve.
My service is actually a java apps that listening to a local port and initialized session pool.
i tried manually start the service but it stopped immediately.
cleared and checked the event log and system log, nothing shows on event log. System log shows the service start and service stopped.
regards,
Dennis
i tried the solution but i could not solve my problem....can u pls suggest any more ways to solve this
ReplyDeleteHad similar problem. Starting with eventlog is good point as in my case it was invalid setting in app.config and it was displayed in eventlog in oppposite that nonsence error I got when trying start service.
ReplyDeleteWorked with me as well.. Thanks a lot!!
ReplyDeleteI had a same problem,to avoid the error like
ReplyDelete"The xyz service on local computer started and then stopped. some service stops automatically if they have no work to do, for example performance log and alert service"
I have removed the changes made in app.config file,
Worked for me.
Thanks
For me the same issue came because of a wrong setting in my app.config file. I changed the setting and the issue resolved
ReplyDeletethank u man grear solution
ReplyDeleteTHANKS IT Working, It is Great Solution
ReplyDeleteAwesome dude, it works!!!!
ReplyDeleteHi,
ReplyDeleteI am trying to configure a weblogic admin server as windows service and i get the same problem. i have tried to set it up as you have mentioned . but it doesnt work. any idea?
any kind of points will be great help.
In sql server configuration
ReplyDeleteDisable VIA protocol...
This will also solve your prob easily than looking into logs
www.parigh.com
for me it is not work :( my service is "postrgessql 9.1"
ReplyDeleteOk Thanks .....Avr
ReplyDelete:<
ReplyDeleteNice work but it is not working in oracle lstnr service
ReplyDeletewww.forgegeek.com
As many people have said, a simple error from a bad web.config parameter can cause this error. Check your web.config!
ReplyDeleteEither that or you ca just close the service list windows, reopen it and try again! It works...
ReplyDeleteAlso, if problems still persist, chekc your event log, it will point the error for you!!
This is not working for me.. Can someone suggest alternative approach?
ReplyDeleteI tried to check "Local system account" and it worked but after that some days, this issue raised again. Someone help me please!
ReplyDeleteSorry Boss..Above solun not working for me..
ReplyDeletePlease suggest me another solun.thx in Adv..!@!
For specific to "Performance Logs and Alerts" service follow the below steps.
ReplyDelete1) got to run prompt, open "perfmon"
2) goto counter logs
3) start system overview.
This is will start your performance logs and alerts.
This resolved me issue. thanks
Thanks a lot, it works for me.
ReplyDelete