The very simple method that we used when I work is:
- Set up the webservice / web method that performs the task. If necessary, this web service can be protected with a username / password.
- Create a console application that calls this web service. If you wish, you can send the console application parameters and / or return some indicators for output to the console or external logging.
- Schedule this executable in the task scheduler of choice.
It is not very, but simple and reliable. Since the console application is just one instant, to tell the application to do its job, it does not need to exchange libraries with the application. Another plus of this methodology is that it is pretty trivial to start manually when necessary.
source share