Cron Job + C#.net + IIS网页[安排.net应用程序] [英] Cron Job + C#.net+ IIS Webpage [Scheduling a .net application]

查看:121
本文介绍了Cron Job + C#.net + IIS网页[安排.net应用程序]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



框架使用:2010 Ultimate

.net框架:3.5

操作系统:2008年企业R2



完成任务:我创建了一个Web应用程序(.aspx);包含与Web服务消费相关的编码,创建word文档报告(DOCX:使用openxml库)和一些dotnetcharting库。



研究/结果:此应用程序必须每月自动调用结束说:每月30个。现在:

1)我不确定我是否正确地以webapplication格式创建它?请建议更好的东西?

2)最重要的是,这可以做到吗在 Windows dll 中有什么东西(只是在帮助中阅读),它可以被称为Windows调度程序?

3)我们可以在webapplication格式中调用它,如果是的话请帮助?



由于我有PHP的经验,我们在那里创建一个网页,然后它将由Linux上的Cron作业调用并自动执行?



最终目标:应用程序将在每月30个月自动调用,然后在完成所有工作后停止。



先谢谢。



-Mahendra Varandani

Hello All,

Framework using:2010 Ultimate
.net framework:3.5
Operating system : 2008 enterprise R2

Task done: I have created a web application(.aspx); containing coding related to consumption of web services, creation of word document reports (DOCX:using openxml library)and some dotnetcharting libraries.

Research/Outcome:This application has to be called automatically every month end say : 30 of every month. now :
1) I am not sure whether I did right to create it in webapplication format?Please suggest if something better?
2) Most important, can this be done in Windows dll sort of thing( just read in help ) where it can be called be windows schedulers?
3) can we call this in webapplication format as well if yes then please assist?

As I had experience in PHP we create a webpage there and then it will be called by Cron jobs on linux and will automatically executed?

End goal:application would be called automatically at every 30 of month and then stop after doing all work.

Thanks in advance.

-Mahendra Varandani

推荐答案

Hi


我认为你可以创建包含两个项目的解决方案,即

1.点网库项目有DOCX转换代码+图表代码

2。使用独立的控制台应用程序使用库(如果不能从外部访问)

3.配置调度作业以在给定的时间表运行控制台应用程序。



问候

Pawan
Hi
I think you could have created the solution comprising of two projects i.e.,
1. dot net library project to have the DOCX conversion code + charting code
2. Consume the library using a stand alone console application (if it is not be accessed from outside)
3. Configure the schedule jobs to run the console application at given schedules.

Regards
Pawan


这篇关于Cron Job + C#.net + IIS网页[安排.net应用程序]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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