Hans, it did not work. I tried writing a real short route to try and isolate the problem. The hang definitely occurs at the UploadFile method. The code is shown below:
Console.WriteLine("FTP has started");
SecureFTPConnection conn = new SecureFTPConnection();
conn.ServerAddress = ConfigurationSettings.AppSettings["ServerAddress"];
conn.ServerCompatibility=SecureFTPCompatibilityFlags.SSLDisableDataClosure;
conn.ServerPort = int.Parse(ConfigurationSettings.AppSettings["ServerPort"]);
conn.UserName = ConfigurationSettings.AppSettings["ServerUID"];
conn.Password = ConfigurationSettings.AppSettings["ServerPassword"];
conn.Protocol = FileTransferProtocol.FTPSExplicit;
conn.ServerValidation = SecureFTPServerValidationType.None;
conn.Protocol = FileTransferProtocol.FTPSExplicit;
conn.TransferType=FTPTransferType.BINARY;
conn.ConnectMode=FTPConnectMode.PASV;
conn.ServerValidation = SecureFTPServerValidationType.None;
conn.Connect();
Console.WriteLine("Connected to server");
conn.ChangeWorkingDirectory("/eriver");
Console.WriteLine("File upload starting....");
conn.UploadFile("C:\\eriver\\test\\test2.log", "test2.log",true);
conn.Close();
Console.WriteLine("File upload completed");
The test app is just a console app. The console hangs at the File upload starting.... message. I monitor the remote directory and the 8.994kb file hangs at the last byte uploads (show 8993 kb uploaded). Any other suggestions.