Hi Experts,
I have written a windows service to perform several tasks for my client a few times a day.
I first wrote the thing as a normal exe and then converted it to a Service. The code works fine. I was also able to install and start the service on a testing PC.
My problem is that none of the code inside my service seem to fire... I have a timer control with interval of 10 000 ms. In the OnStart event I set the timer's enabled property to true. Inside the timer's tick event is all my code.
I noticed that nothing that should be happening is happening. So I put a line of code to write an entry into the Windows event log from the OnStart event of the service and from the Tick event of the timer. The OnStart entry is always there when the service starts but the Tick entry is never there.
This is driving me mad!!!
Please assist. I'm allocating 500 points because I am close to going mad and I need to finish this urgently.
Thanks
Start Free Trial