Error: 1083 The executable program that this service is configured to run in does not implement the service

You develop a windows service application and installed to your machine. When you try to start service you get this error.

Possible reason to this error is service name definitions.

Check the service name and service installer service name. Both must be the same. For instance this is from service class:

private void InitializeComponent()
{
    components = new System.ComponentModel.Container();
    this.ServiceName = "DataExporter";
}

and this code is from service installer settings:

//
// serviceInstallerDataExporter
//
this.serviceInstallerDataExporter.Description = "Exports Data for SPSS as CSV file";
this.serviceInstallerDataExporter.DisplayName = "x Data Exporter";
this.serviceInstallerDataExporter.ServiceName = "x Data Exporter";
this.serviceInstallerDataExporter.StartType = System.ServiceProcess.ServiceStartMode.Automatic;

P.S.: If you have multiple service instances you must be more careful

Happy coding…

Yazı oluşturuldu 141

Bir yanıt yazın

Benzer yazılar

Aramak istediğinizi üstte yazmaya başlayın ve aramak için enter tuşuna basın. İptal için ESC tuşuna basın.

Üste dön