getting error -- Cannot open triggerWindowsService1 service on computer '.'.--
below code i m using to start window service---
protected void Button1_Click(object sender, EventArgs e) { try { System.ServiceProcess.ServiceController service = new System.ServiceProcess.ServiceController("triggerWindowsService1"); service.Start(); } catch (Exception ex) { } }