windows service

Posted by zubin71 on Stack Overflow See other posts from Stack Overflow or by zubin71
Published on 2010-05-03T14:23:30Z Indexed on 2010/05/03 14:28 UTC
Read the original article Hit count: 254

Filed under:
|
|

I need to write a windows service which executes an application after a certain amount of time. I have checked out the code in MSDN and found an example in which the System.ServiceProcess.ServiceBase class is sub-classed.

I did the following.

  1. created a new C# console application
  2. copied the code from the MSDN example
  3. Run

I get the following error

The type or namespace name 'ServiceProcess' does not exist in the namespace 'System'(are you missing an assembly reference?)

As i had copied the example from MSDN, i have no idea why the code still does not work. This is my first experience writing services and i`d love some guidance.

thnkx!

© Stack Overflow or respective owner

Related posts about c#

Related posts about Windows