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 have the same error!! Can somebody help us?
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
ReplyDeletei installed my service with a local account on windows server 2008 and it is giving me this error message. do you know any way to help me out?? please my address is t3x.ltsr@gmail.com
ReplyDeleteHi,
ReplyDeleteWhere is the app.config file and what i need to edit in that...kindly guide i also facing the same issue...while starting SQLSERVER AGENT and MSSQLSERVER.....Pls guide me...
THANKS 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.
Hi same issue for me , I can start the Admin server from command line as:
Deletebeasvc -debug "beasvc base_domain_AdminServer"
but can't do it from services console , have I to restart server ?
Hi Please send me if you find a solution for this.
DeleteIn sql server configuration
ReplyDeleteDisable VIA protocol...
This will also solve your prob easily than looking into logs
www.parigh.com
If it does't work any idea,please update your computer.
ReplyDelete-------------------------------------------------------------
For Example:
Update for Windows Server 2003 x64 Edition
http://www.microsoft.com/downloads/details.aspx?FamilyId=C174BA3C-8C6E-4798-B9F9-27276028F274
-------------------------------------------------------------
for me it is not work :( my service is "postrgessql 9.1"
ReplyDeleteOk Thanks .....Avr
ReplyDelete:<
ReplyDeleteI tried with your solution but it is not working
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.
ReplyDeletefirst of all you need to know the cause of problem, so check log file then proceed to solution. These problems are mostly due to incorrect values in services.config files.
ReplyDeleteEvent logs helps a lot for getting the reason.
ReplyDeletei faced log4net dll version mismatch.
Fantastic
ReplyDeleteWhen I stopped my antivirus from scanning, IT WORKED.
ReplyDeleteSo simple.
The service not working was VMware DHCP Service.
Thank you for this unique information :)
ReplyDeleteWonderful blog & good post.Its really helpful for me, awaiting for more new post. IT Support Orange County
ReplyDeleteInbound Technical Support call | Call at: +91 981-142-0083 | inbound calls for tech support | tech support inbound calls A great online marketing company for tech support inbound calls, Inbound Technical Support call by osiel web
ReplyDeleteby default it is in local system account.... but its not working
ReplyDeleteI have same issue comes to execute the service Jar file using windows service.
ReplyDeleteThanks Boss it works for me too
ReplyDeleteThanks it work for me
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThanks, it worked for me. But could you please let me know why it wasn't working and now it works with this solution?
ReplyDeleteHey basically when you install any service it would seek proper permissions to start the service so it will fail if authentication fails with the current user. so when you give local account it will take from windows
Deleteyou can try by giving proper account details and try it will work for sure.
Thanks Dude,
ReplyDeleteyou're hero ! davidprasetyo.com
Solution shared by you doesn't work for all the applications.
ReplyDeleteWhen the application recommends to configure the account, how can we go with Local System account..
This is not the correct solution to go with..
Please provide me resolution steps to resolve this issue.
hey Sireesh if that is the case you can provide proper account details and save and try start the service it would work fine,it worked for me in same case.
Deleteit worked!!Thanks
ReplyDeletehi, i am getting the same error but the solution which you provided is not working for me :(
ReplyDeleteif that is the case you can provide proper account details and save and try start the service it would work fine,it worked for me in same case
Deletetried all points given above but no solution please guide if possible
ReplyDeleteif that is the case you can provide proper account details and save and try start the service it would work fine,it worked for me in same case
DeleteTried all given solutions but , no results please help asap
ReplyDeleteworked with me thanks
ReplyDeleteNot worked with me thanks
ReplyDeleteIf that is the case select this account radio button and provide proper account details and save and try start the service it would work fine.
Deleteif not Please un-install and install the service with administration privileges.
Thanks