Running app from network drive

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

Hi all.

I think that it is very discussed topic, but I still did not find a
satisfying answer.

Is there any way how to run an application from network drive without
setting permissions for the application manually? The users often do
not know anything about the .Net security, so they are unable to set
the permissions. Moreover if I try to run my applications from
network, they do not throw any exception, no error message appears -
from user point of view just nothing happens, so they do not have a
chance to see that there is any problem...

Is there any way how to enable that permissions programmatically?
Maybe I have to create some kind of installer for the application? Or
is there a possibility to enable the permissions even without an
installer?

Martin
 
If you are using Visual Studio, you can create a ClickOnce deployment,
which allows you to assign permissions (or "full trust"), and sign the
app. This can be published to a UNC (or over the web), and then when
the first user runs it they get a simple, user-oriented "is it OK to
run this?".

After this, it works every time, including automatically getting
updates (if configured appropriately), and (optionally) installing
into the Start menu.

Job done...

Marc
 
Hi,

Martin said:
Hi all.

I think that it is very discussed topic, but I still did not find a
satisfying answer.

Is there any way how to run an application from network drive without
setting permissions for the application manually? The users often do
not know anything about the .Net security, so they are unable to set
the permissions. Moreover if I try to run my applications from
network, they do not throw any exception, no error message appears -
from user point of view just nothing happens, so they do not have a
chance to see that there is any problem...

Is there any way how to enable that permissions programmatically?
Maybe I have to create some kind of installer for the application? Or
is there a possibility to enable the permissions even without an
installer?


Not that I know of, I have a couple of apps in 1.1 that always ahve this
problem.

It was solved in 2.0 with ClickOnce.
 
(note: previous post applies to VS2005 and above)

Well, is there any other way than ClickOnce? I've used it for some
time for one my project and I had to stop using it, because it caused
more problems than it solved. The project was "alive", so I was
creating a new version every day or two and the ClickOnce updater was
not working properly. After hours spent with users that were unable to
get the new update, others that we unable to run the application etc.
I stopped using it, copied only the resulting .exe file to the server
and manually added the application to full trust on each computer that
was using my application. It was lot of work, but after that
everything is working fine... So is there any other way than using
ClickOnce?

Martin
 
Back
Top