I'm trying to access a remote server to read an XML file, but I must log in the server first using username/password. I wrote this C# code to do this, but I'm still getting an exception (invalid username or password)
XmlDocument Document = new XmlDocument();
string filePath = @"\\ServerIPAddress\C$\Temp\fileName.xml";
Document.Load(filePath);
I think the tricky part is to pass the username and password to the server. Any ideas?