473,729 Members | 2,328 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running Windows Forms App From Network Share

We're in the process of writing a new Windows Forms app and the desktop
support folks want for it to be run from a network share. I know it's
possible (i.e., just have the framework on the clients and a desktop
shortcut to the exe out on the network)... but is it really a good idea?

What are some arguments for and against running a .NET Windows Forms client
from a network share? Here is my initial list... I'd appreciate any
additions, corrections, perspective, or opinions:

FOR (running app from network share):
--- smaller footprint on the client (only need a shortcut); no need to have
an application folder.
--- easy deployment - just update the copy on the share (of course this
point is mitigated by ClickOnce or similar home grown updator logic)

AGAINST (running app from network share):
--- slower initial application startup time (as the exe and all supporting
..dll files must travel across the wire to the client before everything can
get started)
--- fewer .config options because App.config won't be there (i.e., won't be
able to make use of Trace Switches on a client-by-client basis, etc).
--- fewer options for logging information locally [in an expected location,
at least] because there will be no application folder in which to write
various local log files.
--- cannot make use of the GAC on clients, and therefore cannot share
components (.NET dlls) amongst apps on the client.

Any additional important points?

Thanks!
May 21 '06 #1
4 4671
On Sat, 20 May 2006 15:18:54 -0700, "Jeremy S." <A@B.COM> wrote:
We're in the process of writing a new Windows Forms app and the desktop
support folks want for it to be run from a network share. I know it's
possible (i.e., just have the framework on the clients and a desktop
shortcut to the exe out on the network)... but is it really a good idea?

What are some arguments for and against running a .NET Windows Forms client
from a network share? Here is my initial list... I'd appreciate any
additions, corrections, perspective, or opinions:

FOR (running app from network share):
--- smaller footprint on the client (only need a shortcut); no need to have
an application folder.
--- easy deployment - just update the copy on the share (of course this
point is mitigated by ClickOnce or similar home grown updator logic)

AGAINST (running app from network share):
--- slower initial application startup time (as the exe and all supporting
.dll files must travel across the wire to the client before everything can
get started)
--- fewer .config options because App.config won't be there (i.e., won't be
able to make use of Trace Switches on a client-by-client basis, etc).
--- fewer options for logging information locally [in an expected location,
at least] because there will be no application folder in which to write
various local log files.
--- cannot make use of the GAC on clients, and therefore cannot share
components (.NET dlls) amongst apps on the client.

Any additional important points?

Thanks!


What about security? A program that is started from a share is not
trusted, right?
--
Ludwig Stuyck
http://www.coders-lab.be
May 21 '06 #2
SP
"Jeremy S." <A@B.COM> wrote in message
news:Oa******** ******@TK2MSFTN GP03.phx.gbl...
We're in the process of writing a new Windows Forms app and the desktop
support folks want for it to be run from a network share. I know it's
possible (i.e., just have the framework on the clients and a desktop
shortcut to the exe out on the network)... but is it really a good idea?

What are some arguments for and against running a .NET Windows Forms
client from a network share? Here is my initial list... I'd appreciate any
additions, corrections, perspective, or opinions:
FOR (running app from network share):
--- smaller footprint on the client (only need a shortcut); no need to
have an application folder.
--- easy deployment - just update the copy on the share (of course this
point is mitigated by ClickOnce or similar home grown updator logic)
I have a "home grown" updater assembly. It creates an XML file based on the
files contained in the distribution folder and then performs a comparison
and transfers new files to the local drive. Occasionally issues arise where
files are locked or are in some inconsistent state (transferred over a WAN
and are corrupted) and the user needs to delete their local folder. Perhaps
you can have similar issues with Click Once? Personally I felt I was playing
with potential installation / deployment problems with Click Once and it
seemed like overkill but others hopefully will share their experiences.
Also, figuring out how to obfuscate the assemblies as part of the Click Once
procedure seemed to require some investment of time that I was not willing
to make at the time.

If the application creates files that need to be accessible in a common
place then you can use the path of the executable as a reference point to
the network. This can also be a bad thing if there are folders that could be
accessed by other users to see sensitive information. (As a side note if you
start an "updater" executable from the network that then spawns the locally
based executable you can get to both the network location and the local
folder location programatically ).

You can tell if users are using the software quite easily by using file lock
information. This can be handy in some cases.

You can easily take the application offline with an entry in the app.config
that prevents users from starting and remaining in the software.

AGAINST (running app from network share):
--- slower initial application startup time (as the exe and all supporting
.dll files must travel across the wire to the client before everything can
get started)
--- fewer .config options because App.config won't be there (i.e., won't
be able to make use of Trace Switches on a client-by-client basis, etc).
--- fewer options for logging information locally [in an expected
location, at least] because there will be no application folder in which
to write various local log files.
--- cannot make use of the GAC on clients, and therefore cannot share
components (.NET dlls) amongst apps on the client.
If it is a WAN based application then the startup time can be totally
unacceptable.

Users can remain in the software and prevent updates so you need to have a
mechanism to deal with this.

Security needs to be adjusted for the "Local Intranet" zone to execute off
the server (although a home grown updater would also require this as it
would be on the network as well).

I have software deployed both ways and even customers that use it both ways
(LAN from network, WAN from updater). I would say network for small user
base and local deployment for large user base. Just be sure that your
deployment model is rock solid, i.e. when testing do things like interrupt
the deployment, power off the computer, delete files, log on as a different
user etc to make sure that the deployment always works correctly.

SP

Any additional important points?

Thanks!

May 21 '06 #3
Why are the desktop support folks asking you to do this? It seems to me that
if they're not just exercising their authority they probably see some
perceived benefit, so then you could evaluiate whether this benefit is real.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"Jeremy S." <A@B.COM> wrote in message
news:Oa******** ******@TK2MSFTN GP03.phx.gbl...
We're in the process of writing a new Windows Forms app and the desktop
support folks want for it to be run from a network share. I know it's
possible (i.e., just have the framework on the clients and a desktop
shortcut to the exe out on the network)... but is it really a good idea?

What are some arguments for and against running a .NET Windows Forms
client from a network share? Here is my initial list... I'd appreciate any
additions, corrections, perspective, or opinions:

FOR (running app from network share):
--- smaller footprint on the client (only need a shortcut); no need to
have an application folder.
--- easy deployment - just update the copy on the share (of course this
point is mitigated by ClickOnce or similar home grown updator logic)

AGAINST (running app from network share):
--- slower initial application startup time (as the exe and all supporting
.dll files must travel across the wire to the client before everything can
get started)
--- fewer .config options because App.config won't be there (i.e., won't
be able to make use of Trace Switches on a client-by-client basis, etc).
--- fewer options for logging information locally [in an expected
location, at least] because there will be no application folder in which
to write various local log files.
--- cannot make use of the GAC on clients, and therefore cannot share
components (.NET dlls) amongst apps on the client.

Any additional important points?

Thanks!

May 21 '06 #4
Thanks Phil,

RE:
<< so then you could evaluiate whether this benefit is real>>

Agreed. And that's what I will be doing later this week when I meet with
them. I came to this group with the OP as part of my efforts to better
understand both sides of the issue (run from network share vs local machine)
prior to entering the discussion with them. AFAIK they want to run from the
share to minimize the footprint on the client. That said, they are
apparently unfamiliar with the fact that .NET apps don't have to touch the
Registry.... so a bit of education may be in order. So whatever I can bring
in that respect will likely be helpful. So far they have responded well to
reason (it's a new client for me).

-J

"Phil Wilson" <pd*******@nosp am.cox.net> wrote in message
news:uo******** ******@TK2MSFTN GP04.phx.gbl...
Why are the desktop support folks asking you to do this? It seems to me
that if they're not just exercising their authority they probably see some
perceived benefit, so then you could evaluiate whether this benefit is
real.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"Jeremy S." <A@B.COM> wrote in message
news:Oa******** ******@TK2MSFTN GP03.phx.gbl...
We're in the process of writing a new Windows Forms app and the desktop
support folks want for it to be run from a network share. I know it's
possible (i.e., just have the framework on the clients and a desktop
shortcut to the exe out on the network)... but is it really a good idea?

What are some arguments for and against running a .NET Windows Forms
client from a network share? Here is my initial list... I'd appreciate
any additions, corrections, perspective, or opinions:

FOR (running app from network share):
--- smaller footprint on the client (only need a shortcut); no need to
have an application folder.
--- easy deployment - just update the copy on the share (of course this
point is mitigated by ClickOnce or similar home grown updator logic)

AGAINST (running app from network share):
--- slower initial application startup time (as the exe and all
supporting .dll files must travel across the wire to the client before
everything can get started)
--- fewer .config options because App.config won't be there (i.e., won't
be able to make use of Trace Switches on a client-by-client basis, etc).
--- fewer options for logging information locally [in an expected
location, at least] because there will be no application folder in which
to write various local log files.
--- cannot make use of the GAC on clients, and therefore cannot share
components (.NET dlls) amongst apps on the client.

Any additional important points?

Thanks!


May 22 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1939
by: CES | last post by:
All, If anyone has been following my trials over the last week see(Setting up a Web Application on IIS 5.1 and ASP.Net Security Problems). I'm having a problem running a Asp.Net Web Application. I've finally narrowed the problem down to a security issue: The ASPNET (aspnet_wp) account cannot connect to a Network resource instead of using a local path ie: C:\Inetpub\wwwroot my development site resides on a Network Share...
8
2491
by: JR | last post by:
I have a Web server running on Windows XP. On this Web server, I have a Web site configured with its home directory on a network share. In the Web site, there's a virtual folder pointing to a local folder on the Web server containing an ASP.NET application. I get a "Failed to start monitoring changes" when I try to run the application. If I try to debug, I get a message "unable to start debugging on the Web server". I put an...
2
2648
by: flat_ross | last post by:
Hi, I am in a shop where developers are required to work off of a network share. This is so that code is backed up nightly. So I am testing running an ASP.NET Web application with a Class assembly all on a shared drive. I have the solution working perfectly. However, I have run into a hiccup. In order to map IIS Virtual Dir to a network drive, you need
11
2324
by: ASP.NET User | last post by:
Hi I am in a shop where developers are required to work off of a networ share. This is so that code and other documentation is backed up nightly. This is outside the realm of Visual SourceSafe which we also use for code control. The network drive is used as the working folder. This is a configuration this shop has used for 6 years and I do not see it changing any time soon So I am testing running an ASP.NET Web application with a Clas...
0
1420
by: James Lang | last post by:
Hi does anyone know of a good sample that shows the coding required to run an VB.net exe from a network share that works with the local machine drives ie C:\ ie place an vb.net exe on a shared drive on the network Helpdesk could remotely take over a users machine navigate to the network share via windows explorer or cmd prompt Double click the exe and it would delete certain files from the local
4
1390
by: Derek Martin | last post by:
Good morning everyone! I have FINALLY finished my crazy go nuts 80,000 line custom built app and am getting ready to do some testing and have already run into a little problem. The app needs to be run from a share, not locally and when attempting to do that, I get this neat message: System.Security.SecurityException What does one need to do to permit this type of activity? Thanks! Derek
3
5217
by: Miriam | last post by:
Hello, I created a Windows Service in VB.NET, which is to purge files periodically in the local system and also in the shared network drive. Here is my problem: 1. If I set the “Account” property of ServiceProcessInstaller to “Local Service” or to “NetWorkService”, it won’t work for both local and network shared directories. (I use log on as this account “NT AUTHORITY\LocalService” for “Local Service” or “NT...
4
2262
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients and a desktop shortcut to the exe out on the network)... but is it really a good idea? What are some arguments for and against running a .NET Windows Forms client from a network share? Here is my initial list... I'd appreciate any additions,...
4
2398
by: Chris Dunaway | last post by:
I have created an application that is to be run from a network share. grant FullTrust to the application. After doing so, the application started fine. I had to make a change and re-compiled the app. Now, it won't start up. Instead, I get the Windows Error about sending the error to Microsoft. I thought perhaps that somehow the changes I made were causing problems so I removed trust for the app and re-added it by issuing the...
0
9427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9202
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9148
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8151
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2683
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.