Jump to content

Windows Service

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Blaze

Blaze

    Programmer

  • Members
  • PipPipPipPip
  • 117 posts
I'm making a windows service software to check data every 5 minutues. After I build the service how do I install it and get it to run? I don't understand..

Second, how am I supposed to test my code?

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Most people, and when I say most people I mean me, create a test harness for Services. That means, they have a 2nd project along with their first (I attach mine to the same project) that has a console or gui based interface. This allows for testing and running of the application. Once you have worked all of the bugs out then move the code to the service section.

For installing, it tells you what to do once you try to run the service (press F5 if in VC#).

#3
Blaze

Blaze

    Programmer

  • Members
  • PipPipPipPip
  • 117 posts
It does tell me to export using a utility when I press F5 but I'm utterly lost. The test harness, is this a new project? So I need to have another instance of C# running?