Windows XP Task Scheduler in ASP.NET

Kitos
02-21-2007, 07:02 AM
Anyone knows if asp.net can schedule tasks in vb code, it doesnt have to be windows tasks, just have to find a way to run some code with some regularity, even if the main app is closed. In this case, I have to put in my project one functionality that pass automaticly a xls data to sql once a day/week three times a week , 10 time for year,wherever the user decides .

If thats impossible/to difficult ,the solution could be an app that is always open and send the information to an SQL database, preferencially one that consume few resources.

Sorry for some bad english.

Thanks for the attention

shaul_ahuva
02-27-2007, 07:04 PM
You can use timers (System.Threading.Timer or System.Timers.Timer), the ASP.NET cache (HttpContext.Current.Cache) or scheduled tasks (here (http://www.codeproject.com/csharp/tsnewlib.asp) is an example, but you'll probably need to modify the privileges your wp account has - which isn't necessarily a good idea).

One thing to be aware of with ASP.NET apps is that your process may get recycled, which will affect your timed tasks unless you track the times they should run.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum