开发者

run job automatically at 12:00 [duplicate]

This question already has answers here: 开发者_开发技巧 Closed 11 years ago.

Possible Duplicate:

executing a c# function after each 24 hours

How can job be set to automatically be done at night 12 by asp.net or c#


ASP .NET isn't really a job scheduler and shouldn't be used as one. It's a web-based request/response system and generally only does things when actively requested to do so by some client.

What you're looking to do, depending on the details of the task(s), can be done with:

  • A console application (which can be written in C#, satisfying that requirement) scheduled to run (such as with the native Windows task scheduler)
  • A Windows Service (also written in C#)
  • A SQL job (which can also run C# code or access an application (as above) which is external to the database)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜