Geeks With Blogs
Omar AL Zabir[MVP] My life with .NET

How to run scheduled jobs from ASP.NET without requiring a Windows Service to be installed on the server? Very often we need to run some maintenance tasks or scheduled tasks like sending reminder emails to users from our websites. This can only be achieved using a windows service. ASP.NET being stateless provides no support to run some code continuously or to run code at scheduled time. As a result, we have to make our own Windows Services in order to run scheduled jobs or cron jobs. But in a shared hosted environment, we do not always have the luxury to deploy our own windows service to our hosting provider’s web server. We either have to buy a dedicated server which is very costly, or sacrifice such features in our web solution. However, running scheduled task is a very handy feature especially for sending reminder emails to users, maintenance reports to administrator, run cleanup operations etc. So, I will show you a tricky way to run scheduled jobs using pure ASP.NET without requiring any windows service. This solution runs on any hosting service providing just ASP.NET hosting:

If you find this article useful, please vote for me.

Posted on Tuesday, November 1, 2005 9:11 AM .NET General | Back to top

Comments on this post: Simulate Windows Service using ASP.NET

# re: Simulate Windows Service using ASP.NET
Requesting Gravatar...
I want try to download your source code in codeproject but it can't.
Can i get your source code?

my email:

Left by Helmi on Oct 10, 2006 6:46 AM

# re: Simulate Windows Service using ASP.NET
Requesting Gravatar...
Source code dose not exites ,

Author deleted it any one have source code?
Left by Mahdi Yousefi on Feb 18, 2007 2:37 PM

Your comment:
 (will show your gravatar)

Copyright © Omar AL Zabir [MVP] | Powered by: