.NET部署到网络共享网络、NET

2023-09-05 00:34:02 作者:单身不香嘛

我有我想要安装的客户端的服务器和工作站都直接从网络共享运行在.NET 3.5应用程序。我读过了一下,似乎表明这是不容易,因为简单地复制应用到网络共享就像我会为本地EXE。不幸的是,似乎是(通过的ClickOnce或其他方式),这样做的正确的/最好的方法缺乏文件。

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).

所以,我怎么会去这样类型的部署?难道我刚才复制的组件?有什么用ClickOnce的,可以让我的生活更轻松,方便日后的更新? (记住,每个客户都会有自己的本地服务器上的不同的安装点。)

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:

显然,.NET框架必须在每个工作站上安装;我想,通过组策略安装的方式是到这里。

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.

我也看到了一些关于网络共享运行需要完全信任,但后来我读到这在3.5可能不是一个问题。没有人知道确切的答案吗?

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?

推荐答案

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

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.

万斯的帖子:http://blogs.msdn.com/vancem/archive/2008/08/13/net-framework-3-5-sp1-allows-managed-$c$c-to-be-launched-from-a-network-share.aspx

我相信实际的变化是CLR 2.0 SP2中,你得到了3.5 SP1,但我还没有找到关于这一问题的任何具体文件。

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.