0

I am trying to create a service with Visual Express for C#. But cannot find the template. I want to create a simple service which reads every X hours or day an XML files containing date and time and attributes.

Then the services will send a syslog message to a remote host containing the task attribute in message.

Any suggestion?

Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
user954590
  • 37
  • 5

2 Answers2

4

Use Windows Scheduler, and call a normal C# program to handle the XML file.

Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
1

AFAIK you cannot create windows services with Visual Studio Express.

EDIT: Here a service is created in VS 2005 Express, so it is still possible.

EDIT1: How to: Write Services Programmatically in VS 2010

Iarek
  • 1,220
  • 15
  • 40
  • 2
    Windows Service is just a piece of code, either you have template for it or you write it by yourself. – Andrey Sep 29 '11 at 08:57
  • 1
    Right. Also see this [SO answer](http://stackoverflow.com/questions/86562/what-is-missing-in-the-visual-studio-2008-express-editions/352373#352373) – Christian.K Sep 29 '11 at 08:58