ASP.NET:计划任务 [英] ASP.NET: Scheduled tasks

查看:113
本文介绍了ASP.NET:计划任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然经济一直在shitter,我写的可能是最最酷的网站是否曾经失业开发商寻求流行语,IFY自己的简历。 (不恨球员,讨厌游戏。)

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.

如果我有共同主办,并能在没有远程(例如 MSTSC 并创建一个计划任务),我怎么可以创建一个任务,将每天在后台运行一次一个ASP.NET网站?

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?

所有的研究我做了,我不认为这是可能的。按我的最后的分析中,有人亲临现场,至少一天一次实例的HttpApplication实例。

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.

没有人有任何解决方案,以确保操作自动运行,无论是否有人访问该网站,并没有什么,但FTP访问的网站的?

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?

就像我说的,我已经做了深入调查这个在过去的很多,而且它似乎没有可能。您是否有经验实施解决方案,请贡献您的咨询!但是,并非postulating或臆断需要 - 它比你想象的肯定更细致,不易

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.

推荐答案

我有一个类似的问题。我写的发行从我的桌面Web请求到我的web应用程序在定期的廉价工具。

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.

如何:发送数据使用WebRequest类

这篇关于ASP.NET:计划任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆