.NET部署到网络共享 [英] .NET Deployment to Network Share

查看:151
本文介绍了.NET部署到网络共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.NET 3.5应用程序,我希望安装在客户端的服务器上,并且工作站直接从网络共享中运行。我已经读了一点似乎建议这不像简单地将应用程序复制到网络共享那样容易,就像我将为一个本机执行。不幸的是,似乎缺乏关于正确/最好的方法(通过ClickOnce或其他方式)的文档。



那么,我该怎么去的部署?我只是复制程序集吗? ClickOnce有什么可以让我的生活更轻松,方便未来更新吗? (请记住,每个客户端在本地服务器上都有不同的安装点。)



到目前为止我所知道的是:



显然,.NET框架必须安装在每个工作站上;我正在考虑通过组策略来安装它是这样的方式。



我也读了一点关于从需要完全信任的网络共享运行,但是后来我看到这可能不是3.5的问题。有谁知道这里的明确答案?

解决方案

从3.5 SP1 开始,从网络共享运行应用程序不再是一个问题。默认情况下,它们将完全信任。



Vance的帖子: http://blogs.msdn.com/vancem/archive/2008/08/ 13 / net-framework-3-5-sp1-allow-managed-code-to-be-launch-from-a-network-share.aspx



我相信实际的变化是使用3.5 SP1的CLR 2.0 SP2,但是我还没有找到关于这个主题的具体文档。


I have a .NET 3.5 application that I wish to install on the client's server and have workstations run it directly from the network share. I've read a bit that seems to suggest this isn't as easy as simply copying the application to the network share like I would for a native exe. Unfortunately, there seems to be a lack of documentation on the correct/best way to do this (via ClickOnce or otherwise).

So, how would I go about this type of deployment? Do I just copy the assemblies? Is there something with ClickOnce that can make my life easier and facilitate future updates? (Bear in mind, each client will have a different install point on their local server.)

What I know so far:

Obviously, the .NET framework has to be installed on each workstation; I'm thinking that installing it via a Group Policy is the way to go here.

I've also read a bit about running from a network share requiring full trust, but then I read this may not be an issue in 3.5. Does anyone know the definitive answer here?

解决方案

Starting with 3.5 SP1 it is no longer an issue to run applications from a network share. They will run with full trust by default.

Vance's Post: http://blogs.msdn.com/vancem/archive/2008/08/13/net-framework-3-5-sp1-allows-managed-code-to-be-launched-from-a-network-share.aspx

I believe the actual change is in CLR 2.0 SP2 which you get with 3.5 SP1 but I haven't found any concrete documentation on the subject.

这篇关于.NET部署到网络共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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