title: read XML file from one server to another server on the same network
body: <p>I have hosted my application on a server having IP 12.3.4.56 and my datastore reside on another server having IP 12.3.4.57 in same network.</p>
  
  <p>I want to read XML file from my datastore server to application server.
  When I fire "\\12.3.4.57\ABC\DEF\" in run prompt it opens the correct folder on both server. I have given everyone read/write shared access on folder also.</p>
  
  <p>When I try to read file from my application server using below code it throws an error. </p>
  
  <pre><code>string XMLFilePath = "\\12.3.4.57\ABC\DEF\dir.xml";
  XmlDocument DirDoc = new XmlDocument();
  DirDoc.Load(XMLFilePath);
  </code></pre>
  
  <p>Error: The username or password is incorrect.</p>
  
  <p>The same error occurred when I try to copy file from my datastore server to application server using below code.</p>
  
  <pre><code>string sourceFile = "\\12.3.4.57\ABD\DEF\Test123 (26).pdf";
  string Folder = HttpContext.Current.Server.MapPath("~/SavedPDFs");
  string destPDFFile = string.Concat(Folder, "Test123 (26).pdf");
  System.IO.File.Copy(sourceFile, destPDFFile, true);
  </code></pre>