Hai guys,
Is there any alternative for windows scheduler for an asp.net application... The alernative must be capable of doing scheduled tasks as i am into shared hosting where i cant add any task scheduler to my server... I know there is quartz.net but my application needs only one task to be scheduled daily so i dont want to use it.... Any other alternative which can carry out scheduled tasks for me....
views:
148answers:
2
+1
A:
One way to do this is..
You can write a windows service which will call your application url over a given period of time recurrently. Install and run this service from your personal computer or any other computer that you is mostly [almost 24x7] online.
Another way to this is..
use website uptime checking services. They call your URL at an interval. There are many free and paid services. I found this one to be good enough after some googling.
http://host-tracker.com/order-page/
this. __curious_geek
2009-12-27 06:51:09
WHat happens if some others hit that page
Pandiya Chendur
2009-12-27 06:53:35
which control panel are you using ?
this. __curious_geek
2009-12-27 06:56:50
You can add security tokens for this URL access. windows service can also act as cookie-enabled http-client and also store security cookies assigned by your url after authentication.
this. __curious_geek
2009-12-27 06:58:23
my pl has control over it ...
Pandiya Chendur
2009-12-27 06:59:00
ok then i ll look for security tokens
Pandiya Chendur
2009-12-27 06:59:34
have the server check for the last time the task has been run; if less than 24 hours, then skip the action. this would eliminate the need for security / authentication.
jdigital
2009-12-27 07:02:48
@jdigital: Not completely secure. If someone else executes the job then your authentic web-service will not be able to do the job. :)
this. __curious_geek
2009-12-27 07:04:04
+1
A:
Instead of a Windows Service you could always just write a simple powershell script to execute at certain intervals, 3 lines of code.
$ie = new-object -com "InternetExplorer.Application"
$ie.navigate("http://www.stackoverflow.com")
$ie.visible = $true
RandomNoob
2009-12-27 17:26:34
@bnkdev where should i keep this powershell script in my asp.net web application or i have to run it on my local system..
Pandiya Chendur
2009-12-28 03:50:42