Search code examples
c#.netweb-services.net-3.5

Dynamically execute a method only once a day using webservice


I want to create a webservice which will process the data in my database once in a day at a particular time.

This time will be stored in a database.

It should only run once a day.

How can I do that?


Solution

  • create a Windows Service, make it start when Windows starts, set up a timer, create an event to handle the timer's elapsed event, and you're good to go.