I have written an application that installs a service and then is supposed to start the service. Everything works great except for the service starting(either with AfterIntall or starting it from the window service manager).
The error I get is
Now everything I have read thus far states that this is an error only with .net framework 1.1. I am currently running 3.5 on my testing machine. So I am a bit confused as to what is going on.
Here is my service code. Any help with this is greatly appreciated.
The error I get is
Code:
System.InvalidOperationException: Cannot start service qbLinxService on computer ',', ------> System.ComponentModel.Win32Exception: The service did not respond to the start or control request in a timely fashion
Here is my service code. Any help with this is greatly appreciated.
Code:
namespace qbLinx { partial class qbLinxService : ServiceBase { public qbLinxService() { InitializeComponent(); } protected override void OnStart(string[] args) { //qbConnect qbCnn = new qbConnect(); //qbCnn.qbTimer(); } protected override void OnStop() { // TODO: Add code here to perform any tear-down necessary to stop your service. } } }
Comment