title: upload file from window application to Remote Web Server
body: <pre><code>string filePath = "C:\\test\\564.flv";
  try
  {
      WebClient client = new WebClient();
  
      NetworkCredential nc = new NetworkCredential(uName, password);
  
      Uri addy = new Uri("\\\\192.168.1.28\\Files\\test.flv");
      client.Credentials = nc;
      byte[] arrReturn = client.UploadFile(addy, filePath);
      Console.WriteLine(arrReturn.ToString());
  }
  catch (Exception ex)
  {
      Console.WriteLine(ex.Message);
  }
  </code></pre>
  
  <p>i am get this error  "The remote server returned an error: (405) Method Not Allowed." what should i doo ??</p>