How do you write and use a Windows Service in C#? What is the best way to that ?
Asked
Active
Viewed 8,146 times
2
-
4Strange, you asked the question then immediately copy/pasted a very long answer. That makes me curious: why did you ask this question? – Roy Dictus Sep 02 '13 at 12:16
-
3@RoyDictus, it's actually allowed - see: http://meta.stackexchange.com/questions/12513/should-i-not-answer-my-own-questions :) – Moo-Juice Sep 02 '13 at 12:17
-
1@Roy it actually is acceptable to ask a question and answer it.. I didn't realise that either until a month or so ago.. – Simon Whitehead Sep 02 '13 at 12:18
-
@RoyDictus I like writing tutorials. I used "Answer you question" option. I want to share my knowledge. – TN888 Sep 02 '13 at 12:18
-
5This question appears to be off-topic because it is too broad. You are asking for a tutorial for an exceedingly broad topic. – David Heffernan Sep 02 '13 at 12:18
-
@DavidHeffernan So please help me in improvement of my question - to be good with recommendations – TN888 Sep 02 '13 at 12:19
-
I'm not suggesting it's not allowed, I just find it strange, especially considering the wording of the question. But that's just me I guess. – Roy Dictus Sep 02 '13 at 12:20
-
@RoyDictus So please help me in improvement of my question - to be good with recommendations – TN888 Sep 02 '13 at 12:23
-
How about "How do you write and use a Windows Service in C#?" – Roy Dictus Sep 02 '13 at 12:28
-
@RoyDictus Do you think that should be a title ? – TN888 Sep 02 '13 at 12:28
-
It could be both the title _and_ the question. That is just my 2 cents, I think no extra fluff is needed, but it's a free country :-) – Roy Dictus Sep 02 '13 at 12:30
-
1@RoyDictus Better :) ? – TN888 Sep 02 '13 at 12:32
-
I don't think any editing fixes this. Question is way too broad. – David Heffernan Sep 02 '13 at 12:49
-
I would have gone with "Is creating an empty project the best way to create a windows service?" because honestly, this is the 2nd tutorial that doesn't use the 'windows service' template. I tried using the template and I can't find my service in the list of services. Confirming this, net start says 'the service name is invalid'. – user426364 May 30 '14 at 19:24
-
@user426364 I like to create service without template cause then I know there are not any stupid mistakes in my project – TN888 May 31 '14 at 20:54