Access UNC path from a network drive

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

    #1

    Access UNC path from a network drive

    I have write a program that Copy/Move files on a unc path's
    The program works fine, i it is stored on a local disk eg. C:\
    If i store the program on a networkdrive it stopps working,
    eg. don't show anyting.
    The UNC path to files i like to COPY or MOVE don't changes
    just the location of my C# program.

    I have added full rights i VisualStudio to the program but
    it don't seem to work

    Any hint ?

    best regards
    Anders
  • Frank

    #2
    Re: Access UNC path from a network drive

    Are you getting something that reads like "no permission exception" or
    something when your app tries some file access?
    Normally Assemblies, like your program or any other .net assembly, get
    a FullTrust permission Set when its executed from any local drive
    unless they specifically ask for less rights. The .Net Security Model
    doesn't give out FullTrust permission sets to assemblies that are
    executed from a network drive so your App would lack permissions to do
    file access and things like that.

    There is a .Net Configuration Editor unter Control Panel-
    >Administrati ve Tools where you can see what permission sets are
    handed out to Assemblies.

    Comment

    • Jay Riggs

      #3
      Re: Access UNC path from a network drive

      On Oct 9, 3:10 am, anders <anders.u.pers. ..@gmail.comwro te:
      I have write a program that Copy/Move files on a unc path's
      The program works fine, i it is stored on a local disk eg. C:\
      If i store the program on a networkdrive it stopps working,
      eg. don't show anyting.
      The UNC path to files i like to COPY or MOVE don't changes
      just the location of my C# program.
      >
      I have added full rights i VisualStudio to the program but
      it don't seem to work
      >
      Any hint ?
      >
      best regards
      Anders


      Anders,

      Check out this article (and its second part) that describes the
      problem Frank mentions and has a couple solution options:



      -Jay



      Comment

      Working...