Sheetal Garg

Sheetal Garg

  • NA
  • 151
  • 10.2k

Problem in Start The Services.

Aug 7 2019 7:54 AM
After Installing the window service in cmd, I am trying to start going to control panel->administrative tool->services->make it automatic. but i am getting warning.
 
“The Service on local computer started and then stopped ,Some services stop automatically if there are not in use by other services or programs.”
 
after trying to some steps i found new error,
 
"Service cannot be started. System.InvalidOperationException: Cannot start service Service1 on computer '.'. ---> System.ComponentModel.Win32Exception: An instance of the service is already running --- End of inner exception stack trace --- at System.ServiceProcess.ServiceController.Start(String[] args) at BirthdayWish.Service1.OnStart(String[] args) in E:\SCHOOLERP_FROM_MANOJ SIR\SchoolErp\School ERP\BirthdayWish\Service1.cs:line 125"
 
how to solve it?
thanks

Answers (1)