filename = "Test.xml"; MyFtpWebRequest = (FtpWebRequest)(WebRequest.Create(ConfigurationManager.AppSettings["ftpPath"].ToString()+filename)); MyFtpWebRequest.Credentials = new NetworkCredential(ConfigurationManager.AppSettings["User"].ToString(), ConfigurationManager.AppSettings["Password"].ToString()); MyFtpWebRequest.Method = WebRequestMethods.Ftp.UploadFile; ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; }; MyFtpWebRequest.EnableSsl = true; MyFtpWebRequest.UseBinary = true;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)