You develop a windows service application and installed to your machine. When you try to start service you get this error.
![](https://dev.ozanbayram.com/wp-content/uploads/sites/14/2022/07/Error1083.png)
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…