Re: Windows Service installed but not working???

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Phill. W (P.A.Ward_at_o-p-e-n-.-a-c-.-u-k)
Date: 05/18/04


Date: Tue, 18 May 2004 14:48:55 +0100


"acool" <none@sendme.com> wrote in message
news:O1uDD1NPEHA.2452@TK2MSFTNGP11.phx.gbl...
> I managed to get my VB.NET service installed. Now I can't get it to do
> anything. Tell me how do you debug smething like this if you have to
> manually install the assembly to run it?

Start the Service, then atach to the running Process.

> the same code works just fine in a VB form but when I initiallize with
> the WS OnStart event I get nothing.

Is your Service running beyond the onStart Event? Timer? Closed
loop woith a Sleep() call in it?
Remember that you have to have an application "thread" running for
the Service to /continue/ to work and you get one of those for free
in a Form.

HTH,
    Phill W.