error 1083 the executable program that this service is configured to run does not implemented the service

前端 未结 4 475
轮回少年
轮回少年 2020-12-20 12:07

getting error while try to start service

4条回答
  •  春和景丽
    2020-12-20 12:16

    Also ensure that in the entry point for the exe (usually the Main procedure) an instance of the your service class (that derives from Service base is created).eg.

    private static void Main()
            {
                var servicesToRun = new ServiceBase[]
                                                  {
                                                      new MyService1(),
                                                      new MyService2()
                                                  };
                ServiceBase.Run(servicesToRun);
            }
    

    If you do not do this, say you do not include code to create instance of MySerivce2, as above, you will get the error message above when you try to start MyService2.

提交回复
热议问题