Windows Service OnStart() not executing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a Windows Service. When I start the service from the Services window,
it indicates that the service started, but does not execute.

When I debug with a public method of Service1 that starts my thread (
_MyThread.Start(); ), then it executes, but not when I start from the
Services window.
 
In which context are you runing your servcice ?
Do you use any start parmater for your service ?

Any more detail erro under event log?
 
Thanks for your reply.

I learned that my Windows Service was throwing an exception at the beginning
of my code where I wasn't expecting. It's fine now.

Thanks much.
J
 
Thanks for your reply.

I learned that my Windows Service was throwing an exception at the beginning
of my code where I wasn't expecting. It's fine now.

Thanks much.
J

--
Be Cool!







- Show quoted text -

I was facing the same problem. It was due to an unwanted special
character in the config file.
 
Back
Top