共享 Windows 主机上的 Windows 服务 [英] Windows Service on Shared Windows Hosting
问题描述
我有不断从提要下载 XML 并将其保存到 DB 的过程.我有一个 Windows 共享主机.
I have process which continuously downloads XML from the feed and saves it to DB. I have a Windows Shared Hosting.
我的问题是我应该使用什么..WCF 或 Windows 服务 或 Web 服务.
My question is what should I use..WCF or Windows Service or Web Service.
我无法使用 ASP.net,因为它只能随叫随到……但我需要它 24/7 运行.你能建议我如何设计吗?
I cant use ASP.net because it will run on call only...but I need it run 24/7. Can you guyz suggest me how to design it?
我编写了一个 Windows 服务,但无法在服务器上运行它.
I have written a Windows Service but was unable to run it on the Server.
我的托管服务提供商是 Hostgator.com
My hosting provider is Hostgator.com
推荐答案
您需要在 Windows 服务中执行此操作.要运行它,您需要一个 VPS 主机(或专用的,但会花费更多).
You need to do it in a Windows Service. To run it you'll need a VPS hosting (or dedicated, but it will cost much more).
首先构建一个满足您需求的控制台应用程序.在线查看如何将其转换为 Windows 服务后.
Start with building a Console Application that does what you need. After you have it look online how to convert it to a windows service.
这篇关于共享 Windows 主机上的 Windows 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!