public int UploadFile(string url, string localFile,out string a_Error)
{
WebClient webClient = new System.Net.WebClient();
webClient.Proxy = null;
webClient.Credentials = new NetworkCredential(Credential.UserName, Credential.Password);
webClient.UploadFile(url, "PUT", localFile);
webClient.Dispose();
}