c# - Using file storage share on another server -
there server iis site asp.net, twisted in domain. there file of share not in domain, authorization login , password.
a task: share should used save user files there, keeping them there , see again through asp.net.
already tried , did not work:
networkcredential thenetworkcredential = new networkcredential(@"username", "password"); credentialcache thenetcache = new credentialcache(); thenetcache.add(new uri(@"\\computer"), "basic", thenetworkcredential); string[] thefolders = directory.getdirectories(@"\\computer\share");
while working on test machine. apparently uses special port blocked on work server.
how provide user name , password when connecting network share - connects network drive, , work not entirely correct.