file transfer using NetworkCredential
<p>While transfer the file from one machine to another machine using C#.Net without socket code</p>

<pre><code>string filePath = "C:\\tags.txt";
try
{
    WebClient client = new WebClient();
    string uName = "myUserName", password ="myPassword";
    NetworkCredential nc = new NetworkCredential(uName, password); 
    Uri addy = new Uri("\\192.168.1.28\\Files\\ tags.txt");
    client.Credentials = nc;
    byte[] arrReturn = client.UploadFile(addy, filePath);
    Console.WriteLine(arrReturn.ToString());
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
} 
</code></pre>

<p>192.168.1.28\Files\ tags.txt"-> this is another machine ip and location 
when am debug the error occured in  Uri Class. </p>

<p>Error is-> <code>Invalid URI: The format of the URI could not be determined.</code><br>
Here i could send the file to target machine if the location is in share...<br>
my need is i need to send file file to corresponding location even if the folder is not in share...</p>

<p>is it correct code .. kindly point out where i did the mistake.... thaks in advance....</p>
