Groups | Blog | Home
all groups > dotnet general > may 2007 >

dotnet general : Windows Service OnStart() not executing


thejackofall
5/31/2007 1:34:04 PM
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.


--
calderara
6/1/2007 7:38:01 AM
In which context are you runing your servcice ?
Do you use any start parmater for your service ?

Any more detail erro under event log?

[quoted text, click to view]
thejackofall
6/4/2007 11:15:03 AM
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!


[quoted text, click to view]
Aneesh P
6/4/2007 6:27:46 PM
On Jun 4, 11:15 pm, thejackofall
[quoted text, click to view]

I was facing the same problem. It was due to an unwanted special
character in the config file.
AddThis Social Bookmark Button