I have limitations to host Windows Services in my web hosting provider. But i need run small task frequently.
Do 开发者_开发技巧we have any other framework/api which provides similar infrastructure like "Windows Services" from ASP.NET?
You may take a look at Quartz.NET
I think it will better if you can use FireDaemon. If you can create a console application, then the filedemon will be able to run it frequently similar to Windows service.
http://www.firedaemon.com/
If you are using ASP.NET 4, you can have your app pool always running, then have a timer going, and whenever that time elapses, run your process:
http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx
You can start a thread using the Application Start event in the Global.asax to do the scheduled job. It is not as robust solution as a Windows Service but it is good enough in most cases.
精彩评论