优点/缺点 - 从映射驱动器或共享文件夹中运行.NET程序 [英] Run a .NET program from a mapped drive or shared folder - Pros/Cons

查看:100
本文介绍了优点/缺点 - 从映射驱动器或共享文件夹中运行.NET程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一些你一个愚蠢的问题,但什么是赞成/运行Windows的缺点形成一个从共享驱动器.NET应用程序。直到最近,我甚至不知道这是可能的。从研究它看起来像净3 SP1允许这种行为(而无需更改安全性)。

This may be a silly question for some of you, but what are Pros/Cons of running a Windows Forms .Net application from a shared drive. Up until recently I didn't even know this was possible. From research it looks like .Net 3 SP1 allows this behavior (without requiring any security changes).

我很好奇,以任何并发问题和可扩展性。

I am curious as to any concurrency issues or scalability.

另外,我假设净,仍需要每个客户端将运行在共享驱动器的应用程序上。任何帮助是AP preciated。

Also, I am assuming .Net is still required on each client that will run the app from the shared drive. Any help is appreciated.

推荐答案

我们有一些是做夜间批处理.NET编写控制台程序。这些节目的活在SAN上,通过映射驱动器访问。由于我们仍然在NET 2.0处理服务器必须专门配置为允许这些程序运行,当然在处理服务器需要安装的框架,但除此之外,它的伟大工程。 .Net3.5sp1甚至会解决特殊配置。

We have a number of console programs written in .Net that do nightly batch processing. These programs "live" on a SAN accessed via mapped drive. Since we're still on .Net 2.0 the processing server had to be specially configured to allow these programs to run, and of course the processing server needs the framework installed, but otherwise it works great. .Net3.5sp1 would even fix the special configuration.

现在,这种情况很可能是从你在想什么不同。如果您想将应用程序部署到共享文件夹,以便有很多不同的用户可以访问它,这是一个坏主意。如果你写在同一文件夹中的应用程序的任何数据文件(一个不好的想法,但人们做这一切的时候),然后将这些文件共享(并锁定)被所有用户。此外,当前运行的程序的任何用户使文件系统上放置的程序文件的锁,潜在地锁定你出部署更新。如果你想这样做,净提供所谓的ClickOnce支持应用程序部署到网络共享一个优秀的系统。

Now, this scenario is probably different from what you're thinking about. If you want to deploy an application to a shared folder so that a lot of different users can access it, this is a bad idea. If you write to any data files in the same folder as the app (a bad idea anyway, but people do it all the time) then those files are shared (and locked) by all users. Also, any user currently running the program causes the file system to place a lock on the program file, potentially locking you out of deploying updates. If you want to do this, .Net provides an excellent system called ClickOnce to support deploying apps to network shares.

这篇关于优点/缺点 - 从映射驱动器或共享文件夹中运行.NET程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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