running a.net application on a network share

2

1

I have a .net 2.0 winform application that I would like users to run from from a network share. Are there any disadvantages to doing this?

Brad

Posted 2009-09-03T16:00:38.927

Reputation: 362

Answers

1

If the application was coded to use configuration files in the same directory, users will encounter problems. I'm sure you also don't want to give write permissions to the network share for users. Make sure the application can be configured to write user settings to their home directory if it saves any.

.NET applications also don't allow you to use DLLs on networked or mapped drives. You can read how to fix this here.

John T

Posted 2009-09-03T16:00:38.927

Reputation: 149 037

1The app is using the configurations.settings class...I'll write it so it saves user settings in an xml to the users home dir..thanks. – Brad – 2009-09-03T16:16:45.913

1

There are a few gotcha's you have to watch out for running .NET applications from a network share. Specifically, .NET applications fun from a network share by default run at low trust, meaning they will not be granted to several system resources including file access, registry, etc. So if the application is not specifically designed to run at low trust, you will likely run into problems.

According to Brad Adams at Microsoft, there are no security concerns running applications like this and there is a nice tutorial from a Microsoft blog on how to work around this low-trust issue. Once that is fixed, your application should run just like any other .NET app.

heavyd

Posted 2009-09-03T16:00:38.927

Reputation: 54 755