Hi,
I have created sample windows service using C# and have installed on my development machine(windows 7 enterprise ,64 bit)But i got the error A timeout was reached (30000 milliseconds) while waiting for the Service1 service to connect. while trying to start the service .then i have addedd the regidtry key ServicesPipeTimeout DWORD value to 60000 in theControl key and restarted the machine.Now i am getting timeout was reached (60000 milliseconds) while waiting for the Service1 service to connect.I am not able to figure out what is the cause for this issue.
public Service1() { InitializeComponent(); } protected override void OnStart(string[] args) { _timer = new System.Timers.Timer(10 * 60 * 1000); _timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); } private void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { Process(); } public void Process() { The below process is comment out to resolve the starting issue //BusinessLayer.ProcessFile.ProcessFiles(); }
protected override void OnStop() { }
Please advise what could be the issue ?.Thanks in advanse.
Regards,
Sajesh