Running app from network drive

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin

    Running app from network drive

    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 programmaticall y?
    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

    #2
    Re: Running app from network drive

    (note: previous post applies to VS2005 and above)


    Comment

    • Marc Gravell

      #3
      Re: Running app from network drive

      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


      Comment

      • Ignacio Machin \( .NET/ C# MVP \)

        #4
        Re: Running app from network drive

        Hi,

        "Martin" <zizka@centrum. czwrote in message
        news:1186736105 .572237.22760@e 9g2000prf.googl egroups.com...
        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 programmaticall y?
        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.


        Comment

        • Martin

          #5
          Re: Running app from network drive

          On 10 Srp, 11:02, "Marc Gravell" <marc.grav...@g mail.comwrote:
          (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

          Comment

          Working...