每日运行共享主机中的webform(如godaddy) [英] To run daily wise a webform in shared hosting (like godaddy)
问题描述
先生/女士,
我开发了一个网站。除了一个问题,一切都运行正常。实际上我需要运行一个表格,以确定特定日期是否有某些事件,如果事件然后发送消息给该客户端,如生日祝福,周年纪念愿望等,我有一个表格。但我不知道如何在共享主机中安排该任务。
我尝试过的事情:
我试图为那件事做一个Windows服务。它在本地计算机上运行良好,因为我已经在我的本地计算机上安装了该服务,但我用google搜索它发现我们无法在共享主机上安装窗口服务。
Sir/Madam,
I have developed a website. Everything is running fine except one problem. Actually i need to run a form to find whether particular day has some events or not if event then send a message to that client like birthday wishes, anniversary wishes etc. and i have a table for that . But i don't know how to schedule that task in shared hosting.
What I have tried:
I tried to make a windows service to that thing. its work good on local machine because i have installed that service in my local computer but i had googled it i found that we cant installed window service on shared hosting.
推荐答案
您需要实现的内容称为Web作业(Go Daddy中的cron作业)。我不确定Go Daddy是否允许基于exe的工作。
使用Plesk共享主机安排任务| Windows主机(Plesk) - GoDaddy帮助 [ ^ ]
我强烈建议使用更适合基于.Net的应用程序(如Azure)的云服务。使用Azure,您可以安排exe以设定的间隔运行,您只需上传此exe,它将与您的网站共享相同的应用程序配置设置。它会比GoDaddy花费更多,但你会获得更多功能,所有东西都会在银盘上交给你。
当你做这个网络工作时,不要创建Windows服务,创建一个控制台应用程序。
祝你好运!
链接到azure
Microsoft Azure:云计算平台 [ ^ ]
What you need to implement is called a web job (cron job in Go Daddy). I'm not sure if Go Daddy allows exe based jobs however.
Scheduling Tasks with Plesk Shared Hosting | Windows Hosting (Plesk) - GoDaddy Help[^]
I highly advise using a cloud service that is more suitable for .Net based applications, like Azure. With Azure you can schedule an exe to run at a set interval, and you can just upload this exe and it will share the same app configuration settings as your website. It would cost a bit more than GoDaddy, but you get many more features and everything is handed to you on a silver platter.
When you do make this web job, do not create a windows service, create a console application.
Good Luck!
Link to azure
Microsoft Azure: Cloud Computing Platform[^]
这篇关于每日运行共享主机中的webform(如godaddy)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!