PC Review


Reply
Thread Tools Rate Thread

Access UNC path from a network drive

 
 
anders
Guest
Posts: n/a
 
      9th Oct 2008
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
 
Reply With Quote
 
 
 
 
Frank
Guest
Posts: n/a
 
      9th Oct 2008
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-
>Administrative Tools where you can see what permission sets are

handed out to Assemblies.
 
Reply With Quote
 
Jay Riggs
Guest
Posts: n/a
 
      12th Oct 2008
On Oct 9, 3:10*am, anders <anders.u.pers...@gmail.com> wrote:
> 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:

http://www.codeproject.com/KB/dotnet...trong_nam.aspx

-Jay



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drive path vs. Network Path S:\Shared\Folder vs. \\NETWORK\USER\FO Author Microsoft Access VBA Modules 4 28th Aug 2008 05:31 PM
Getting the physical path of network drive. rony_16 Microsoft Dot NET Framework Forms 1 29th Oct 2006 12:58 PM
Path to a network drive =?Utf-8?B?Q1dpbGxpcw==?= Microsoft Excel Misc 2 23rd Jun 2006 03:06 AM
network path not found error 53 map network drive =?Utf-8?B?QnJlbnQ=?= Windows XP Networking 4 10th Feb 2005 03:53 PM
Determining if a path is a network path (aka mapped drive - PathIsNetworkPath) Robert Munroe Microsoft C# .NET 0 10th Dec 2003 10:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:40 PM.