I have a ASP.NET website running on Server 2003 with SQL-Server as database.
I have two tasks that I want to automate on daily basis.
1) Update the Lucene search index file
2) Update the profile pic of all user from LDAP server
I have both codes in aspx pages but I want them to run daily at midnight or 4 am in the morning or something like that. I havent done any automation before so I am clueless. So
my question is…
What are my options?
Thank you 🙂
You’ve got some options:
There is this on Code Project Simulate a Windows Service using ASP.NET to run scheduled jobs
You can write your own Windows service.
You can go the commercial route and use a web based scheduler. Two popular ones are:
web.scheduler and web based cron
Another option is to create a Windows scheduled task. When the task fires off, you can have it hit a page that runs the logic you wish to perform. Here’s a linked solution on SO: Recommended method for loading a URL via a scheduled task on Windows