Reputation: 1
I need some guidance on creating and running a Cron Job in asp.net(C#.net) to run my page every 30 minutes. My Web page has to load data from Sql Server to MySql database every 30 minutes with this cron job.
Thanks
Upvotes: 0
Views: 5644
Reputation: 1581
Try investigating quartz.net, which is an open source port of the quartz project. I believe you should be able to include it as part of your web application.
Upvotes: 1
Reputation: 15885
I don't think you'll find that feature out-of-the-box in ASP.NET. Here's what I usually do...
This is just something to get you started. Making this robust (if you need it robust) can get complicated.
Upvotes: 2
Reputation: 6580
I don't think this is best suited for ASP.NET. You might want to just create a regular Console App, configure it in the Server Task Scheduler to run every 30 minutes. Or if you so inclined, you can create your own Windows Service to do this.
Upvotes: 2