How to access File over the Network

Posted by Polo on Stack Overflow See other posts from Stack Overflow or by Polo
Published on 2010-03-22T10:25:53Z Indexed on 2010/03/29 10:13 UTC
Read the original article Hit count: 284

Hi!

I am having a hard time on this one, I have a folder over the network with public access (no credential restriction). I am trying to do a File.Exist or Directory.Exist and I keep on having a exception.

Can someone tell me the good way to do IO over the network.

EDIT 1 FOR DETAILS:

if i do execture => \agoodip\Public\test.txt I get the file etc etc

In my code it look like a basic

Directory.Exist(@"\\agoodip\Public") or File.exist(@"\\agoodip\Public\test.txt")

The exception I get is Path not found.

EDIT 2 :

I am using Silverlight 3, Is there any security pattern to be aware of to lookup file on the network?

Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET