Skip to content
July 18, 2008 / jphoward

Scheduled tasks using ASP.Net

When using a shared hosting service, there’s generally no way to create scheduled tasks. This can be a big problem, since it provides no way to run scheduled maintenance tasks, automated email systems, and so forth.

A very clever workaround which uses nothing but ASP.Net, and will work on any shared hosting service, is described in this Code Project article. The basic trick is to create an expiring cache object when the application first starts, and to then attach to the event that fires each time the object expires which creates a new expiring cache object.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: