Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2007

Tip: Looking for answers? Try searching our database.

Running app from network drive

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin - 10 Aug 2007 09:55 GMT
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
Marc Gravell - 10 Aug 2007 10:01 GMT
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
Marc Gravell - 10 Aug 2007 10:02 GMT
(note: previous post applies to VS2005 and above)
Martin - 27 Aug 2007 12:00 GMT
> (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
Ignacio Machin ( .NET/ C# MVP ) - 10 Aug 2007 14:10 GMT
Hi,

> Hi all.
>
[quoted text clipped - 13 lines]
> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.