Re: Riddle Me This
- From: pbd22 <dushkin@xxxxxxxxx>
- Date: Fri, 11 Jan 2008 10:55:19 -0800 (PST)
Thanks for your reply Willy.
Seems I am articulating myself poorly today.
So, you have the service correctly registered, but when you try to start the
service from the service applet (or from the command line using net
start...), the service doesn't start at all.
The service DOES START. In fact (annoyingly) the Event Log throws
absolutely
no errors. It starts, it runs, and it shuts down when i tell it to. I
even wrote a
custom Event Log that produces no information.
When I say "it doesn't work", I am talking about the exe.
For what it is worth, here is the OnStart method:
protected override void OnStart(string[] args)
{
ventLog1.WriteEntry("Service started successfully.",
EventLogEntryType.Information);
new Thread(new ThreadStart(InitService)).Start();
}
.
- Follow-Ups:
- Re: Riddle Me This
- From: Willy Denoyette [MVP]
- Re: Riddle Me This
- References:
- Riddle Me This
- From: pbd22
- Re: Riddle Me This
- From: Michael C
- Re: Riddle Me This
- From: pbd22
- Re: Riddle Me This
- From: Michael D. Ober
- Re: Riddle Me This
- From: DeveloperX
- Re: Riddle Me This
- From: pbd22
- Re: Riddle Me This
- From: pbd22
- Re: Riddle Me This
- From: pbd22
- Re: Riddle Me This
- From: Willy Denoyette [MVP]
- Re: Riddle Me This
- From: pbd22
- Re: Riddle Me This
- From: pbd22
- Re: Riddle Me This
- From: Willy Denoyette [MVP]
- Riddle Me This
- Prev by Date: Re: Create a function like IsDigit()
- Next by Date: Re: Create a function like IsDigit()
- Previous by thread: Re: Riddle Me This
- Next by thread: Re: Riddle Me This
- Index(es):
Relevant Pages
|