如何在局域网上运行window .net应用程序 [英] how to run window .net application on lan

查看:63
本文介绍了如何在局域网上运行window .net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Lan上运行Windows(.net C#应用程序)
请帮助我

问候
Lakhan Aanjana

[edit]仅主体,伪造的''被删除-OriginalGriff [/edit]

解决方案

您可以从网络共享之类的文件中运行可执行文件.

但是,默认情况下,.Net中不允许这样做,该网络仅完全信任安装在本地计算机上的代码.

远程计算机(映射的网络共享等)上的代码将位于"Local_Intranet"区域下,并且默认情况下不具有完全信任.

您可以像下面这样更改

*在要配置的计算机上打开命令行
* CD C:\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727
* caspol -pp off
* caspol -m -cg LocalIntranet_Zone FullTrust

更多信息在这里

解决方案

You can run an executable from something like a network share.

However, by default this is disallowed in .Net which only Fully trusts code that is installed on the local machine.

Code on remote machines (mapped network shares etc) will fall under the ''Local_Intranet'' zone and does not have full trust by default.

You can change this like follows

* Open a command line on the machine you want to configure
* CD C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
* caspol -pp off
* caspol -m -cg LocalIntranet_Zone FullTrust

More information here

http://blogs.msdn.com/b/brada/archive/2007/10/26/adhoc-poll-allowing-net-exes-to-run-off-a-network-share.aspx[^]


You will have to install the application in each of you work stations, but the Database used by the application may be kept centralised.So all the data would be consistent and integrity is maintained for all the users.


Hope this will help you to sort out your issue.


1) Install Sql Server/Oracle/MySql(one you are using) in Server system.
2) Then use the IP address of server machine as server in Connection Sting.
3) Now you don''t want to install database server(Sql Server/Oracle/MySql) in all machine where as you have to install the .Net application exe in all client system.


这篇关于如何在局域网上运行window .net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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