Can't start my Windows Service

Hi...

I've got something which is making me pull my hair out which I hope someone can shed some light on. Basically I've got a Windows Service using VS.NET 2005. This service has been working fine for a while. For some reason now, I cannot get the service to start.

By placing MessageBoxes in (with the correct display permissions) I found that the service itself is just not 'activating'. (Main and OnStart are not being called) So I cannot even attach to the process to debug. The service startup manager times out with Error 2186. 'The Service is not Responding to the Control Function.'

All permissions within the directory appear OK. I've treid uninstalling/reinstalling.

I'm not sure whether this is a .NET 2.0 issue or not. The service appears to start ok on other PC's with 2.0 runtime on.

Has anyone else seen anything like this, or can they shed any light on what might be going on

Thanks



Answer this question

Can't start my Windows Service

  • Alex2004

    Hi,

    Does the service need to run under any specific identity
    Also, make sure the password for the identity that you are using has not expired.

    Regards,
    Vikram

  • Rafa Cabedo

    I'm having a similar issue with a service that I wrote in C#. It's been working fine but now it's not starting when I try to run either NET START [servicename] or start the service through the Services Administration snap-in. What's weirdest is that while it does require a specific account under which to run, it starts when running on my laptop, but not on the tablet for which it is intended. Any help that you can offer

    Thanks in advance,

    Chris Massie

  • Can't start my Windows Service