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! 4 4585
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
"Jeremy S." <A@B.COM> wrote in message
news:Oa**************@TK2MSFTNGP03.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!
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**************@TK2MSFTNGP03.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!
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*******@nospam.cox.net> wrote in message
news:uo**************@TK2MSFTNGP04.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**************@TK2MSFTNGP03.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!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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”...
|
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...
|
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...
|
by: erikbower65 |
last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps:
1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal.
2. Connect to...
|
by: linyimin |
last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
|
by: erikbower65 |
last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA:
1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Taofi |
last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same
This are my field names
ID, Budgeted, Actual, Status and Differences
...
|
by: DJRhino1175 |
last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this -
If...
|
by: Rina0 |
last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
| |