views:

193

answers:

5

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.

+2  A: 

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

HackedByChinese
You sir, I think, have the only solution. That was my conclusion the last time I spent an entire week evaluating and prototyping possible solutions. +1 if I was using a registered account.
JamesBrownIsDead
A: 

You could have a look at Quartz.NET for scheduling jobs.

Michael Shimmins
A: 

DotNetNuke which is a popular open source .net content management system does this. You can download the source and see exactly how they did it.

JonnyBoats
A: 

Can you schedule a task in SQL Server that could call a CLR function? Your hosting provider may not allow either ot both of those, but if they do, then you are golden.

RedFilter
+1  A: 

I agree with HackedByChinese, but if you don't want to run it from your desktop, you could get something like http://aremysitesup.com/ to ping your site for you.

Matt Dotson