如何部署C#code到一台服务器?如何在服务器上运行的exe文件? [英] How to deploy C# code to a server? How to run an exe on a server?

查看:191
本文介绍了如何部署C#code到一台服务器?如何在服务器上运行的exe文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

钍短篇小说是: 我有一个Godaddy的共享的Windows服务器帐户,我有一些C#$ C $我的计算机上本地运行完美℃。我要运行的服务器作为一个exe文件,对这个code。这可能吗?我不相信我的命令提示符或远程桌面访问我的共享空间。

Th short story is: I have a Godaddy shared Windows server account and I have some C# code on my computer that runs perfect locally. I want to run this code on the server as an exe file. Is this possible? I do not believe I have command prompt or remote desktop access to my shared space.

详细信息: 最终的目标是拥有一个网站谁进入在一个SQL数据库中的数据和处理数据。无论是网站和数据库的建立和运行。接下来,我想有背景,以基于此数据库中的信息发送电子邮件运行上面的程序。

More details: The end goal is to have a website who enters data and manipulates data in a SQL database. Both the website and database are up and running. Next, I want to have the above program running in the background in order to send emails based on the information in this database.

看来,这不是很常见,或者考虑这个问题,因为我无法找到很多相关的帮助,关于这个主题的一个非常落后的方式,任何指导将是伟大的!

It seems that this is not very common, or a very backwards way of thinking about it as I cannot find much relevant help on this topic, any guidance would be great!

推荐答案

与GoDaddy你可以有cron作业,如果你有一个Linux帐户。对于Windows服务器,你的运气了。

With Godaddy you can have cron jobs IF you have a Linux account. For Windows servers you are out of luck.

我不和你需要发送邮件的频率,但如果它是低我有两个办法,的可以的为你工作。

I don't the frequency with which you need to send emails, but if it is low I have two approaches that could work for you.

您可以将您的数据导出到自己控制的服务器(在家里或办公室),并用它来发送电子邮件。该网站将是一个信息采集和你自己的系统会发送者。

You could export your data to a server you control (at home or office) and use it to send the emails. The website would be a gatherer of info and your own system would be the sender.

另一种方法是将有一个web服务揭开序幕的电子邮件code和调用从计划程序在本地系统上。一个丑陋的做法予以肯定,但替代品:1)切换到Linux,2)切换到不同的托管服务提供商

An alternate approach would be to have a webservice that kicks off the email code and call that from a scheduled app on your local system. An UGLY approach to be sure, but the alternatives are: 1) switch to Linux, 2) switch to a different hosting provider.

这篇关于如何部署C#code到一台服务器?如何在服务器上运行的exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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