How to access external network folders with c# Asp.net?

Asked

Viewed 2,250 times

2

When I try to read files on another network (which requires authentication), the error below occurs. The same problem I also have when I try to access protected folders.

Does anyone know how to fix it ?

DirectoryInfo dirE = new DirectoryInfo(@"\\\\123.45.6.78\dados\Chapolin");
FileInfo[] filesE = dirE.GetFiles("*", SearchOption.AllDirectories);

Additional information: Login failure: unknown username or incorrect password.

  • 1

    The logged-in user has access to these folders?

  • When directly accesses by explorer the same message is displayed? And other folders on the network, same problem?

  • See: http://stackoverflow.com/questions/5433570/access-a-remote-directory-from-c-sharp

1 answer

3

Browser other questions tagged

You are not signed in. Login or sign up in order to post.