Here is a code snippet of my OnStart and OnStop methods:
protected override void OnStart(string[] args)
{
req = new nsReq.Requestor();
req.start();
}protected override void OnStop()
{
req.stop();
}I assume I should add the call to base.OnStart() and base.OnStop() after my code. Does this sound right? Any reason why I would call the base first?
Thanks, Mike
At 12:42 PM 3/7/2004 -0800, you wrote:
I have never had this problem. I don't have my service code in front of me but it sounds like you are not calling the base.OnStart() in your OnStart() or something along those lines.
--- Mike Parent <[EMAIL PROTECTED]> wrote: > I have a .net service that after installing it on a > clean machine will > always stay in the "starting" status when attempting > to start it for the > first time. Subsequent attempts will always work > fine. It only appears to > happen the very first time on a newly installed > system. Is there some > framework initialization or something similar that > happens the first time a > .net service is invoked? > > Mike > > =================================== > This list is hosted by DevelopMentor� > http://www.develop.com > Some .NET courses you may be interested in: > > NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles > http://www.develop.com/courses/gaspdotnetls > > View archives and manage your subscription(s) at http://discuss.develop.com
=================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in:
NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls
View archives and manage your subscription(s) at http://discuss.develop.com
=================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in:
NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls
View archives and manage your subscription(s) at http://discuss.develop.com
