如何在局域网上运行window .net应用程序 [英] how to run window .net application on lan
本文介绍了如何在局域网上运行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
更多信息在这里
^ ]
您将必须在每个工作站中安装该应用程序,但使用的数据库应用程序可以保持集中.因此所有数据将保持一致,并为所有用户维护完整性.
希望这可以帮助您解决问题.
1)在服务器系统中安装Sql Server/Oracle/MySql(正在使用的一个).
2)然后将服务器计算机的IP地址用作Connection Sting中的服务器.
3)现在,您不想在所有要在所有客户端系统中安装.Net应用程序exe的机器上都安装数据库服务器(Sql Server/Oracle/MySql).
>
how to run our Windows (.net C# application )on Lan
please help me
Regards
Lakhan Aanjana
[edit]Subject only, spurious ''.''s removed - OriginalGriff[/edit]
解决方案
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屋!
查看全文