1) The specified service has been marked for deletion.
* Check the service is already exist in Add Or Remove Programs and uninstall if it is. Then install the service. If the error remain occurs, just restart the computer then install the service. It will be installed fine.
2) The service did not respond to the start or control request in a timely fashion.
* Check the code in Onstart method of service by creating the test project and fix any issues found and also in service constructor method. If the service does not have access rights for creating a eventlog, this error will occur.
3) Some service start and stop automatically if they have no work to do so.
* Check the code in Service default Constructor, and check the access rights for creating eventlog if the any code written for creating eventlog and also check in the call of dll if any dlls are used.
4) Service cannot be started. System.ArgumentNullException: Value cannot be null.
* Open the service properties in Service manager then give the parameters value then start the service(like command line arguments)
Take ASP.NET application to offline
11 years ago