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.
The logged-in user has access to these folders?
– Jéf Bueno
When directly accesses by explorer the same message is displayed? And other folders on the network, same problem?
– rodrigorf
See: http://stackoverflow.com/questions/5433570/access-a-remote-directory-from-c-sharp
– Marconi