Advertisement

03.06.2008 at 05:25AM PST, ID: 23219370
[x]
Attachment Details

Need help with Windows Service not running

Asked by PantoffelSlippers in .NET Framework 2.0, Microsoft Visual Basic.Net, Microsoft Windows Operating Systems

Tags: VB.Net, Framework 2.0, Windows Service

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.

ThanksStart Free Trial
[+][-]03.06.2008 at 05:30AM PST, ID: 21059898

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.06.2008 at 08:01AM PST, ID: 21061539

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.0, Microsoft Visual Basic.Net, Microsoft Windows Operating Systems
Tags: VB.Net, Framework 2.0, Windows Service
Sign Up Now!
Solution Provided By: mastoo
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628