I've come across this problem quite a few times in my years with ASP.Net: How can I rely on it to run stuff for me on a schedule?
I have always fallen back on Windows Services, running on my web servers to solve this, and the only Windows Services I've ever written were for executing tasks on a schedule for my web apps. Wrapping such a service up within ASP.Net (reliably) would have saved me a lot of pain and trouble, but it's simply not what the framework was designed for, and no matter how hard I looked, there was not solution in place to accomplish this - until now! :)
Simulate a Windows Service using ASP.NET to run scheduled jobs
By Omar Al Zabir
Omar explains how you can manually register a cache item into your web application by using Cache's Insert() to set a timeout (minimum 2 minutes), and a work method to delegate to when that timeout occurs. This is a keeper...
Print | posted on Tuesday, November 08, 2005 12:04 PM