Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.7k views
in .NET FTP by (540 points)
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();

10 Answers

0 votes
by (162k points)
You'll need to be more specific. Log file or stack trace?
0 votes
by (540 points)
Sorry but I can't find the logFile!!! I certainly forget to creat it! How can we create a log file?
0 votes
by (162k points)
See the Developers Guide.

Sorry but I can't find the logFile!!! I certainly forget to creat it! How can we create a log file?
0 votes
by (540 points)
here is my log :
INFO [teleFichier] 30 juin 2006 14:43:12.921 : D
0 votes
by (162k points)
"User toto cannot log in" says it all.
0 votes
by (540 points)
but why, when i try with my computer, i can connect myself to the FTP and when it's on the server i can't?
0 votes
by (540 points)
Maybe the problemecome from a firewall? or something else? No? I not understand my problem!!!
0 votes
by (162k points)
I don't understand it either.

If you have remote access to the server, log on and try command line FTP to the same host using the same credentials.

Maybe the problemecome from a firewall? or something else? No? I not understand my problem!!!
0 votes
by (540 points)
I try with an FTP client and it's good!!
maybe I forget something to do!!!
                    #region ftp

                    FTPConnection ftpConnect = new FTPConnection();
                    ftpConnect.AutoLogin = true;

                    //definition des param
0 votes
by (540 points)
I just see that the version 1.2.3 is on line. I do an update and now it's good!

Categories

...