In your integration service project,
1. Edit ProjectInstaller.Designer.cs,
check if the Service Installer has been well configured
//
// serviceInstaller
//
this.serviceInstaller.ServiceName = "<default service name>";
this.serviceInstaller.DisplayName = "<default service display name>";
this.serviceInstaller.Description = "<service description>";
this.serviceInstaller.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
2. Edit ProjectInstaller.cs
Add the following codeto the constructor, after InitializeComponent()
InitializeComponent();
//add code here
var config = System.Configuration.ConfigurationManager.OpenExeConfiguration(
System.Reflection.Assembly.GetAssembly(
System.Reflection.MethodBase.GetCurrentMethod().D