I try to create a file on a remote machine, but I get "Network name could not be found." I checked the network path and I was able to access the path from my machine. Could you tell me what could be wrong?
Here is my code.
using (StreamWriter sw = new StreamWriter("\\\\servername\\TEST1\\TEST\\NEWFILE.csv", true))
{
sw.WriteLine(sw);
}
source
share