Hello,
I program a page in .net for upload file to a server. When I try this page in my computer it's good, but I have install this page in another server and now i have a message that he say that the user is not good!
Do you have a solution?
FTPConnection ftpConnect = new FTPConnection();
ftpConnect.AutoLogin = true;
ftpConnect.Password = ConfigurationSettings.AppSettings["ftpPwd"];
ftpConnect.UserName = ConfigurationSettings.AppSettings["ftpUser"];
ftpConnect.ServerAddress = ConfigurationSettings.AppSettings["ftpAdresseServer"];
ftpConnect.ServerPort =Convert.ToInt32(ConfigurationSettings.AppSettings["ftpPortServer"]);
ftpConnect.Timeout = 0;
ftpConnect.ConnectMode = FTPConnectMode.ACTIVE;
ftpConnect.Connect();
ftpConnect.TransferType = FTPTransferType.ASCII;
ftpConnect.ChangeWorkingDirectory(ConfigurationSettings.AppSettings["ftpUploadAdresse"]);
ftpConnect.UploadFile(ConfigurationSettings.AppSettings["UploadPath"] + "\\" + chemin, chemin);
ftpConnect.Close();