如何在两个不同的PC(不在一个服务器中)中运行C#应用程序? [英] How do I make a C# application run in two different pcs (which are not in one server)?

查看:70
本文介绍了如何在两个不同的PC(不在一个服务器中)中运行C#应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个创建了db的应用程序,它可以生成发票和报告。

我的问题是如何运行和看到所有打印的发票并在另一台不在同一台服务器/局域网中的PC上生成报告,基本上,从家里检查工作的PC应用程序?



谢谢!



我尝试过:



我还没有尝试过任何东西,我在考虑如何做到这一点。

Hi,

I have an application with db created which generates invoices and reports.
My question is how can I run and see all printed invoices and generate reports in another PC which is not in the same server/lan/ ,basically, checking the work pc application from home?

Thanks!

What I have tried:

I haven't tried yet anything, I am thinking of any idea how to do it.

推荐答案

Quote:

从家里检查工作电脑应用程序?

checking the work pc application from home?

有两种方法可以做到这一点:

- 将PC从工作带回家。

- 在工作的PC上安装服务器,并使用凭证与它通信。



没有其他方法可以使用从家里连接并检查工作PC。那是不可能的; 量子纠缠 [ ^ ]目前只是一种理论



所以,如上所述,您可以简单地安装IIS(预装在Windows系统中;您可以启用它),然后在那里安装Web应用程序,可以在家里或任何地方使用PC消费。有许多简单的方法,您可以在其中安装尽可能小的服务器,但足以支持最基本的操作;例如生成和接收报告。有关简单的概述,请查看我的文章使用IIS和ASP.NET设置家庭服务器的简单指南 [ ^ ]。本文将为您提供足够的概述来构建您自己的服务器。



安全等可以轻松集成,以确保只有您可以访问该服务;你甚至可以只允许你自己的IP地址并阻止剩余的流量。



编辑

<有人可能会争辩说,您可以从Office PC获取数据的离线副本,然后将其带回家用PC。但这不是你在问题中提到的。另外,对于连接或执行,C#程序只需要.NET框架,这根本不是问题。



问题是数据库,用于创建报告。您无法负担家庭和办公室的冗余数据。相反,服务器建议将完美地工作。



如果我错过了你的问题,请告诉我。

There are two ways that you can do this:
- Bring the PC from work, to home.
- Install a server on the PC at work, and communicate with it using credentials.

There is no other way that you can use to connect and check the work PC from home. That is just not possible; quantum entanglement[^] is just a theory at the moment.

So, as mentioned, you can simply install IIS (which comes preinstalled in Windows systems; you can enable it), and then install a web application there, that you can consume from PC at home, or anywhere. There are so many simple ways, in which you can install a server as small as possible but enough to support the most basic operations; such as generating and receiving the reports. For a simple overview, please have a look at my article, A simple guide to setting up home server using IIS and ASP.NET[^]. This article will provide you with enough overview to build your own server.

Security etc. can be easily integrated to make sure only you can access the service; you can even allow your own IP address only and block the rest of the traffic.

Edit

Some might argue, that you can get an offline copy of your data from Office PC, and then bring it back to home PC. But that is not what you mentioned in your question. Also, as for connection or execution, a C# program would only require the .NET framework, which will not be a problem at all.

The problem is the database, that is used to create reports. You cannot afford to have redundant data at home and office. Instead, the server suggestion would work perfectly.

If I missed a point in your question, do let me know.


这篇关于如何在两个不同的PC(不在一个服务器中)中运行C#应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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