Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Developing Windows Services
Subject:   Problem in starting window service
Date:   2006-10-17 22:02:39
From:   Renukadevi
Hi,


I have created a simple windows service in .NET and installed it without any trouble. Then i tried to start the service through Computer Management screen, its throwing message box saying "This service has been started and stopped. Some service stop automatically if they have no work to do."


But i have created the service with timer to trigger every 30 sec to write an entry to a database table.


Looks like i cannot start the service. Also i tried to debug it but i could not find my service.exe in the list to attach since it is not running. {instead i found explorer.exe which is new and from the same path my service.exe exists. But physically explorer.exe is not existing in that folder)


Could you please tell me what may be the cause? and how to fix this?


Thanks in advance
Renu