Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET: Scheduled tasks

While the economy has been in the shitter, I've written possibly the most coolest site EVER for unemployed developers looking to buzzword-ify their resumes. (Don't hate the player, hate the game.)

The only problem is, it needs a scheduled task to run once a day to do some data mining. I spent many, many hours a few months ago researching solutions, but nothing seemed sure-fire.

If I have shared hosting and cannot remote in (e.g. mstsc and create a Schedule Task), how can I create a task that will run once a day on the backend of an ASP.NET website?

After all the research I did, I don't think it's possible. Per my last analysis, someone has to visit the site at least once a day to instantiate an instance of HttpApplication.

Does anyone have any solution to making sure an operation runs automatically, no matter whether anyone visits the site, and without anything but FTP access to the website?

Like I said, I've done A LOT of looking into this in the past, and it didn't seem possible. IF YOU HAVE EXPERIENCE implementing a solution, please, contribute your advice! But not postulating or conjecturing needed--it's far more nuanced and difficult than you're surely imagining.

like image 653
JamesBrownIsDead Avatar asked Mar 02 '10 02:03

JamesBrownIsDead


People also ask

What is ASP.NET scheduler?

The ASP.NET Web Forms Scheduler control is an event calendar that facilitates almost all basic Outlook and Google Calendar features. It allows the user to plan and manage appointments efficiently.

How do I schedule a task in IIS?

Double-click Add Scheduled Task and click Next. Click Browse, navigate to the \%systemroot%\system32 folder, select iisreset.exe, then click Open. The scheduler will automatically name the task iisreset; you can accept that name or modify it, then assign a daily, weekly, or monthly time interval for running the task.

How do I schedule a job in .NET core?

We can use Quartz scheduling to perform a job every 5 minutes. To begin, make a project with the ASP.NET core web application template. Choose Asp.net MVC for your online application. There are two ways to install the Quartz package.

How do I get a list of scheduled tasks?

To open Scheduled Tasks, click Start, click All Programs, point to Accessories, point to System Tools, and then click Scheduled Tasks. Use the Search option to search for "Schedule" and choose "Schedule Task" to open the Task Scheduler. Select the "Task Scheduler Library" to see a list of your Scheduled Tasks.


1 Answers

I had a similar problem. I wrote a cheap utility that issued a web request from my desktop to my web app on a regular schedule.

How To: Send Data Using the WebRequest Class

like image 150
moribvndvs Avatar answered Oct 30 '22 09:10

moribvndvs