2

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 :)

Bhrugesh Patel
  • 1,096
  • 5
  • 20
  • 38

2 Answers2

2

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

Community
  • 1
  • 1
zeroef
  • 1,949
  • 23
  • 32
0

If you're looking for automation within your asp.net web application, consider Quartz.net as a good free, open source solution. We've been using it to automate maintenance tasks and are quite happy with the results.

DMac the Destroyer
  • 5,240
  • 6
  • 36
  • 56