what's the best/easiest way to execute a scheduled .net script on a dedicated server?
what's the best/easiest way to execute a scheduled .net script on a dedicated server?
Is the script a webform or a console app. If later a scheduled task is the best method.
yes, just a .net web form.
we've been having trouble with windows scheduler being unreliable (missing times?)... just wondered if there was a better option for the guy trying to make it work!...?
A window service can be the most reliable and you would basically code it to run 24-7 and then at certain times get it to perform an action. We then have a second piece of code (a scheduled task) which runs every 10 mins to ensure that the service is logging to a text file which is a sign it is still running and has not fell over. If the scheduled task was not to run then it is bad luck.
Otherwise a scheduled task is a good option. If you are having problems with it not running, check the error code when it last run to ensure that it finished in time, ensure it is configured to run under the correct user account, get the program to log every time it starts to run and also finishes.
Otherwise if you want a webform to run the code you would need to write one of the above to call the webform which would probably make the webform redudant as the code can be in the service or scheduled task.
Helm has a website scheduler (defaultly disabled on RFH) but give warren a support ticket and he'll setup the scheduled task for you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks