Upload files to a remote server
<p>I need to upload files from my asp.net (C#) page residing in the web server to a remote server. </p>

<p>I managed to upload files to remote server from localhost using this code:</p>

<pre><code>      string serverPath = "\\\\xx.xxx.xx.xx\\Folder\\" + FileUpload1.FileName;
      FileUpload1.PostedFile.SaveAs(serverPath);
</code></pre>

<p>But after I published this code to my web server, it stopped working with the error "The network path was not found."</p>

<p>I have looked at a few solutions which suggest using UNC network share and implementing impersonation.
I couldn't figure out how to apply these solutions.</p>

<p>Can someone please give an example, or suggest a simpler solution.</p>

<p>Thanks!!</p>
