File Transfer fails on GrassValley K2 server.

0
I am not able to transfer local file to Grassvalley K2 server. Sample code is as below private void uploadFiles() { try { Ftp client = new Ftp(); client.Connect(serveraddress.Text); string auth = client.Authenticate(username.Text, password.Text); client.Passive = false; ComponentPro.IO.FileInfoCollection collection;//= client.ListDirectory(); // Set the log level. ComponentPro.Diagnostics.XTrace.Level = ComponentPro.Diagnostics.TraceEventType.Verbose; // Add the UltimateTextWriterTraceListener listener to write to a file. ComponentPro.Diagnostics.XTrace.Listeners.Add( new ComponentPro.Diagnostics.UltimateTextWriterTraceListener("c:\\temp\\log.log")); // You can also write log to a Console window with the following code: ComponentPro.Diagnostics.XTrace.Listeners.Add(new ComponentPro.Diagnostics.UltimateConsoleTraceListener()); string dirname = @"GXF/default"; string[] strsplit = dirname.Split('/'); foreach (var diritem in strsplit) { collection = client.ListDirectory(); bool bln = collection.Any(x => x.IsDirectory && x.Name == diritem); if (bln == false) { client.CreateDirectory(diritem); } client.SetCurrentDirectory(diritem); } List files = new List() { "SSIM-S2.gxf" }; ComponentPro.IO.FileSystemTransferStatistics stat = client.UploadFiles(@"C:\Temp", files, client.GetCurrentDirectory(), new ComponentPro.IO.TransferOptions(), 1, true); // Disconnect. client.Disconnect(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } Log generated is as below Ftp: 1, Thread Id: 0 [05-23-2018 15:20:12.74] Information - Command: PWD Ftp: 1, Thread Id: 0 [05-23-2018 15:20:13.03] Information - Response: 257 "V:/" is current directory. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:13.05] Information - Command: TYPE A Ftp: 1, Thread Id: 0 [05-23-2018 15:20:13.36] Information - Response: 200 TYPE command okay. Type is ASCII, Format is Non-print. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:13.37] Information - Command: PORT 10,20,89,75,110,130 Ftp: 1, Thread Id: 0 [05-23-2018 15:20:13.65] Information - Response: 200 PORT command okay. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:13.65] Information - Command: LIST Ftp: 1, Thread Id: 0 [05-23-2018 15:20:13.95] Information - Response: 150 Opening data connection for LIST V:/. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:23.33] Verbose - Info: FTP data connection accepted from 10.21.74.50:20. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:23.34] Information - Response: 226 Transfer complete. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:23.34] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group 0 May 21 23:24:42 GXF Ftp: 1, Thread Id: 0 [05-23-2018 15:20:23.35] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group 0 May 21 23:24:42 MXF Ftp: 1, Thread Id: 0 [05-23-2018 15:20:23.35] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group 0 May 21 23:24:42 MPG Ftp: 1, Thread Id: 0 [05-23-2018 15:20:23.35] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group 0 May 21 23:24:42 PIN Ftp: 1, Thread Id: 0 [05-23-2018 15:20:23.35] Verbose - Info: 268 bytes transferred. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:23.35] Verbose - Info: Closing downloading data connection. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:23.35] Verbose - Info: Transfer ended successfully. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:23.35] Verbose - Info: FTP data connection closed. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:25.92] Information - Command: CWD GXF Ftp: 1, Thread Id: 0 [05-23-2018 15:20:26.19] Information - Response: 250 Change of directory to V:/GXF/ successful, xfer mode GXF. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:28.66] Information - Command: PWD Ftp: 1, Thread Id: 0 [05-23-2018 15:20:28.94] Information - Response: 257 "V:/GXF/" is current directory. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:28.94] Information - Command: PORT 10,20,89,75,111,98 Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.30] Information - Response: 200 PORT command okay. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.30] Information - Command: LIST Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.60] Information - Response: 150 Opening data connection for LIST V:/GXF/. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.90] Verbose - Info: FTP data connection accepted from 10.21.74.50:20. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.90] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Sep 18 2012 CT Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.90] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Mar 02 2006 default Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.90] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Feb 20 11:06:00 GXF Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.90] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Mar 05 13:49:00 MXF Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.90] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Jun 25 2012 Omneon Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.90] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Mar 02 2006 Recycle Bin Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.90] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Apr 27 2010 Space TEST Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.94] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Apr 27 2010 Space TESTING Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.94] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Jun 28 2012 Ver_6_27 Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.94] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Nov 19 2007 watchtest Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.94] Verbose - Info: 680 bytes transferred. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.94] Verbose - Info: Closing downloading data connection. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.94] Verbose - Info: Waiting for data transfer ending message. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.96] Information - Response: 226 Transfer complete. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.96] Verbose - Info: Data transfer ended. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:29.96] Verbose - Info: Transfer ended successfully. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:30.15] Verbose - Info: FTP data connection closed. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:32.53] Information - Command: CWD default Ftp: 1, Thread Id: 0 [05-23-2018 15:20:32.86] Information - Response: 250 Change of directory to V:/GXF/default/ successful, xfer mode GXF. Ftp: 1, Thread Id: 0 [05-23-2018 15:20:44.55] Information - Command: PWD Ftp: 1, Thread Id: 0 [05-23-2018 15:20:44.85] Information - Response: 257 "V:/GXF/default/" is current directory. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:18.61] Information - Command: TYPE I Ftp: 1, Thread Id: 0 [05-23-2018 15:21:18.88] Information - Response: 200 Type set to IMAGE. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:18.89] Information - Command: MDTM . Ftp: 1, Thread Id: 0 [05-23-2018 15:21:19.25] Information - Response: 500 "MDTM" not understood. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:19.33] Information - Command: SIZE . Ftp: 1, Thread Id: 0 [05-23-2018 15:21:19.65] Information - Response: 213 13 Ftp: 1, Thread Id: 0 [05-23-2018 15:21:19.65] Information - Command: CWD V:/GXF/default/ Ftp: 1, Thread Id: 0 [05-23-2018 15:21:19.94] Information - Response: 250 Change of directory to V:/GXF/default/ successful, xfer mode GXF. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:20.00] Information - Command: CWD V:/GXF/default/V:/GXF/default Ftp: 1, Thread Id: 0 [05-23-2018 15:21:20.34] Information - Response: 550 Could not change directory to "V:/GXF/default/V:/GXF/default". Ftp: 1, Thread Id: 0 [05-23-2018 15:21:20.36] Information - Command: CWD V:/GXF/default/V:/GXF Ftp: 1, Thread Id: 0 [05-23-2018 15:21:20.66] Information - Response: 550 Could not change directory to "V:/GXF/default/V:/GXF". Ftp: 1, Thread Id: 0 [05-23-2018 15:21:20.66] Information - Command: CWD V:/GXF/default/V: Ftp: 1, Thread Id: 0 [05-23-2018 15:21:20.97] Information - Response: 550 Could not change directory to "V:/GXF/default/V:". Ftp: 1, Thread Id: 0 [05-23-2018 15:21:20.97] Information - Command: CWD V:/GXF/default Ftp: 1, Thread Id: 0 [05-23-2018 15:21:21.28] Information - Response: 250 Change of directory to V:/GXF/default/ successful, xfer mode GXF. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:21.28] Information - Command: PWD Ftp: 1, Thread Id: 0 [05-23-2018 15:21:21.60] Information - Response: 257 "V:/GXF/default/" is current directory. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:21.60] Information - Command: CWD V:/GXF Ftp: 1, Thread Id: 0 [05-23-2018 15:21:21.89] Information - Response: 250 Change of directory to V:/GXF/ successful, xfer mode GXF. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:21.89] Information - Command: PWD Ftp: 1, Thread Id: 0 [05-23-2018 15:21:22.24] Information - Response: 257 "V:/GXF/" is current directory. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:22.24] Information - Command: CWD V:/GXF/default/ Ftp: 1, Thread Id: 0 [05-23-2018 15:21:22.56] Information - Response: 250 Change of directory to V:/GXF/default/ successful, xfer mode GXF. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:22.56] Information - Command: CWD V: Ftp: 1, Thread Id: 0 [05-23-2018 15:21:22.88] Information - Response: 250 Change of directory to V:/ successful, xfer mode FILEMODE. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:22.88] Information - Command: PWD Ftp: 1, Thread Id: 0 [05-23-2018 15:21:23.20] Information - Response: 257 "V:/" is current directory. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:23.26] Information - Command: CWD V:/GXF/default/ Ftp: 1, Thread Id: 0 [05-23-2018 15:21:23.61] Information - Response: 250 Change of directory to V:/GXF/default/ successful, xfer mode GXF. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:23.65] Information - Command: MKD V: Ftp: 1, Thread Id: 0 [05-23-2018 15:21:23.95] Information - Response: 550 Error in "MKD /explodedFile/V:/". Bin "/explodedFile/V:/" already exists! Ftp: 1, Thread Id: 0 [05-23-2018 15:21:23.99] Error - Info: ComponentPro.Net.FtpException: Error in "MKD /explodedFile/V:/". Bin "/explodedFile/V:/" already exists! (550). at ComponentPro.Net.Ftp.c_STE(Int32 c_LE, Boolean c_ACL, AsyncOperation c_Y) at ComponentPro.Net.Ftp.ReadResponse(Int32 success, AsyncOperation asyncOp) at ComponentPro.Net.Ftp.c_V3M(String c_NB, ProgressFileItem c_OVM, AsyncOperation c_Y) Disk File System: 3, Thread Id: 0 [05-23-2018 15:21:24.06] Verbose - Verbose: Thread 0 has error: ComponentPro.Net.FtpException: Error in "MKD /explodedFile/V:/". Bin "/explodedFile/V:/" already exists! (550). at ComponentPro.Net.Ftp.c_STE(Int32 c_LE, Boolean c_ACL, AsyncOperation c_Y) at ComponentPro.Net.Ftp.ReadResponse(Int32 success, AsyncOperation asyncOp) at ComponentPro.Net.Ftp.c_V3M(String c_NB, ProgressFileItem c_OVM, AsyncOperation c_Y) at ComponentPro.Net.Ftp.c_KGM(String c_NB, ProgressFileItem c_AZA, AsyncOperation c_Y) at ComponentPro.IO.FileSystem.c_ACM(String c_RFM, ProgressFileItem c_UCM, AsyncOperation c_Y) at ComponentPro.IO.FileSystemTransferStatistics.c_SCM(FileSystem c_TCM, ProgressFileItem c_UCM, String c_VCM, AsyncOperation c_Y) at ComponentPro.IO.Transferrer.c_KPM(ProgressFileItem c_BXJ, TransferThreadInfo c_H2K, Boolean c_F2M, Boolean c_G2M) Disk File System: 3, Thread Id: 0 [05-23-2018 15:21:24.17] Verbose - Verbose: Transfer thread 0 quits on stop. ComponentPro.IO.FileSystem c_ZOM [05-23-2018 15:21:24.17] Verbose - Verbose: OnTransferMultiFilesCompleted in SetThreadStopped ComponentPro.IO.FileSystem c_ZOM [05-23-2018 15:21:24.17] Verbose - Verbose: OnTransferMultiFilesCompleted ComponentPro.IO.Transferrer c_CKM c_G1M [05-23-2018 15:21:24.17] Verbose - Verbose: Stopping 1 threads with Stopping state ComponentPro.IO.TransferThreadInfo [05-23-2018 15:21:24.17] Verbose - Verbose: Stopping thread 0. Current state: Stopped ComponentPro.IO.TransferThreadInfo [05-23-2018 15:21:24.17] Verbose - Verbose: Thread 0's state is not changed since it is in Stopped. Wish to change to Stopping Ftp: 1, Thread Id: 0 [05-23-2018 15:21:24.37] Verbose - Info: Not aborting, state not found. Disk File System: 3, Thread Id: 0 [05-23-2018 15:21:24.37] Verbose - Info: Not aborting, state not found. Ftp: 1, Thread Id: 0 [05-23-2018 15:21:28.38] Information - Command: QUIT Ftp: 1, Thread Id: 0 [05-23-2018 15:21:28.66] Information - Response: 221 Goodbye. ComponentPro FTP library also not detected DirectoryExists on K2 server, I have to get the directory list and then checks if it is present in that list. [https://www.componentpro.com/qa/ftp-file-transfer-issue-grass-valley-k2-ftp-server][1] [1]: https://www.componentpro.com/qa/ftp-file-transfer-issue-grass-valley-k2-ftp-server
 
asked 5/23/2018 10:13:27 AM
add a comment

2 Answers

0
Tried with empty string, still file not transferred. ComponentPro.IO.FileSystemTransferStatistics stat = client.UploadFiles(@"C:\Temp","", new ComponentPro.IO.TransferOptions(), 1, true); **Log generated is as below** Ftp: 1, Thread Id: 0 [05-24-2018 10:01:28.06] Information - Command: PWD Ftp: 1, Thread Id: 0 [05-24-2018 10:01:28.57] Information - Response: 257 "V:/" is current directory. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:28.58] Information - Command: TYPE A Ftp: 1, Thread Id: 0 [05-24-2018 10:01:28.92] Information - Response: 200 TYPE command okay. Type is ASCII, Format is Non-print. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:29.01] Information - Command: PORT 10,20,89,83,39,178 Ftp: 1, Thread Id: 0 [05-24-2018 10:01:29.32] Information - Response: 200 PORT command okay. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:29.33] Information - Command: LIST Ftp: 1, Thread Id: 0 [05-24-2018 10:01:29.66] Information - Response: 150 Opening data connection for LIST V:/. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.48] Verbose - Info: FTP data connection accepted from 10.21.74.50:20. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.48] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group 0 May 21 23:24:42 GXF Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.51] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group 0 May 21 23:24:42 MXF Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.51] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group 0 May 21 23:24:42 MPG Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.51] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group 0 May 21 23:24:42 PIN Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.51] Verbose - Info: 268 bytes transferred. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.51] Verbose - Info: Closing downloading data connection. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.59] Verbose - Info: Waiting for data transfer ending message. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.83] Information - Response: 226 Transfer complete. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.83] Verbose - Info: Data transfer ended. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.83] Verbose - Info: Transfer ended successfully. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.83] Verbose - Info: FTP data connection closed. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:30.83] Information - Command: CWD GXF Ftp: 1, Thread Id: 0 [05-24-2018 10:01:31.45] Information - Response: 250 Change of directory to V:/GXF/ successful, xfer mode GXF. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:31.52] Information - Command: PWD Ftp: 1, Thread Id: 0 [05-24-2018 10:01:31.80] Information - Response: 257 "V:/GXF/" is current directory. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:31.81] Information - Command: PORT 10,20,89,83,39,208 Ftp: 1, Thread Id: 0 [05-24-2018 10:01:32.23] Information - Response: 200 PORT command okay. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:32.27] Information - Command: LIST Ftp: 1, Thread Id: 0 [05-24-2018 10:01:32.63] Information - Response: 150 Opening data connection for LIST V:/GXF/. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.06] Verbose - Info: FTP data connection accepted from 10.21.74.50:20. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.06] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Sep 18 2012 CT Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.06] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Mar 02 2006 default Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.06] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Feb 20 11:06:00 GXF Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.06] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Mar 05 13:49:00 MXF Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.06] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Jun 25 2012 Omneon Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.06] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Mar 02 2006 Recycle Bin Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.06] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Apr 27 2010 Space TEST Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.08] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Apr 27 2010 Space TESTING Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.08] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Jun 28 2012 Ver_6_27 Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.08] Verbose - Info: Found FTP Item: drwxr-xr-x 1 user group Nov 19 2007 watchtest Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.08] Verbose - Info: 680 bytes transferred. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.08] Verbose - Info: Closing downloading data connection. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.08] Verbose - Info: Waiting for data transfer ending message. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.08] Information - Response: 226 Transfer complete. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.08] Verbose - Info: Data transfer ended. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.08] Verbose - Info: Transfer ended successfully. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.28] Verbose - Info: FTP data connection closed. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.31] Information - Command: CWD default Ftp: 1, Thread Id: 0 [05-24-2018 10:01:33.65] Information - Response: 250 Change of directory to V:/GXF/default/ successful, xfer mode GXF. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:35.94] Information - Command: PWD Ftp: 1, Thread Id: 0 [05-24-2018 10:01:36.53] Information - Response: 257 "V:/GXF/default/" is current directory. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:37.13] Information - Command: TYPE I Ftp: 1, Thread Id: 0 [05-24-2018 10:01:37.57] Information - Response: 200 Type set to IMAGE. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:37.58] Information - Command: PORT 10,20,89,83,40,5 Ftp: 1, Thread Id: 0 [05-24-2018 10:01:37.95] Information - Response: 200 PORT command okay. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:37.95] Information - Command: STOR V:/GXF/default/log.log Ftp: 1, Thread Id: 0 [05-24-2018 10:01:38.29] Information - Response: 150 Opening MOVIE mode data connection for /explodedFile/V:/default/log.log. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:38.80] Verbose - Info: FTP data connection accepted from 10.21.74.50:20. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:38.83] Verbose - Info: Closing uploading data connection. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:38.86] Verbose - Info: Waiting for data transfer ending message. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:41.31] Information - Response: 426 Error in transfer, 0x80044d04: Unsupported media type in the transfer. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:41.31] Verbose - Info: Data transfer ended. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:41.31] Verbose - Info: Transfer ended with error code 426. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:41.41] Error - Info: Error while closing data connection: ComponentPro.Net.FtpException: Error in transfer, 0x80044d04: Unsupported media type in the transfer (426). at ComponentPro.Net.Ftp.c_Z8M(c_T7M c_QM, FtpResponse c_GW, String c_FW, Int64 c_QDL, String c_BKM, Boolean c_RDL, Boolean c_SDL, Boolean c_UCL, AsyncOperation c_Y) at c_NLL.c_TMA() Disk File System: 3, Thread Id: 0 [05-24-2018 10:01:41.51] Verbose - Verbose: Thread 0 has error: ComponentPro.Net.FtpException: Error in transfer, 0x80044d04: Unsupported media type in the transfer (426). at ComponentPro.Net.Ftp.c_Z8M(c_T7M c_QM, FtpResponse c_GW, String c_FW, Int64 c_QDL, String c_BKM, Boolean c_RDL, Boolean c_SDL, Boolean c_UCL, AsyncOperation c_Y) at c_NLL.c_TMA() at c_VKA.Dispose(Boolean disposing) at c_T7M.Dispose(Boolean disposing) at System.IO.Stream.Close() at c_G6M.c_TMA() at c_VKA.Dispose(Boolean disposing) at System.IO.Stream.Close() at ComponentPro.Net.Ftp.c_J4M(ProgressFileItem c_YGM, Stream c_T7, AsyncOperation c_Y) at ComponentPro.Net.Ftp.c_JOM(ProgressFileItem c_YGM, Stream c_T7, AsyncOperation c_Y) at ComponentPro.IO.FileSystem.c_ZUM(ProgressFileItem c_YGM, AsyncOperation c_Y) at ComponentPro.IO.Transferrer.c_KPM(ProgressFileItem c_BXJ, TransferThreadInfo c_H2K, Boolean c_F2M, Boolean c_G2M) Disk File System: 3, Thread Id: 0 [05-24-2018 10:01:41.53] Verbose - Verbose: Transfer thread 0 quits on stop. ComponentPro.IO.FileSystem c_ZOM [05-24-2018 10:01:41.54] Verbose - Verbose: OnTransferMultiFilesCompleted in SetThreadStopped ComponentPro.IO.FileSystem c_ZOM [05-24-2018 10:01:41.54] Verbose - Verbose: OnTransferMultiFilesCompleted ComponentPro.IO.Transferrer c_CKM c_G1M [05-24-2018 10:01:41.54] Verbose - Verbose: Stopping 1 threads with Stopping state ComponentPro.IO.TransferThreadInfo [05-24-2018 10:01:41.54] Verbose - Verbose: Stopping thread 0. Current state: Stopped ComponentPro.IO.TransferThreadInfo [05-24-2018 10:01:41.54] Verbose - Verbose: Thread 0's state is not changed since it is in Stopped. Wish to change to Stopping Ftp: 1, Thread Id: 0 [05-24-2018 10:01:41.74] Verbose - Info: Not aborting, state not found. Disk File System: 3, Thread Id: 0 [05-24-2018 10:01:41.74] Verbose - Info: Not aborting, state not found. Ftp: 1, Thread Id: 0 [05-24-2018 10:01:44.81] Information - Command: QUIT Ftp: 1, Thread Id: 0 [05-24-2018 10:01:45.28] Information - Response: 221 Goodbye. **FileSystemTransferStatistics read as below** stat {ComponentPro.IO.FileSystemTransferStatistics} ComponentPro.IO.FileSystemTransferStatistics BytesPerSecond 1060 long DirectoriesSkipped 0 int DirectoriesTransferred 0 int ElapsedTime {00:00:05.8760964} System.TimeSpan Ended {24-05-2018 10:01:41} System.DateTime FileList null ComponentPro.IO.ProgressFileList FilesSkipped 0 int FilesTransferred 0 int LastException {"Error in transfer, 0x80044d04: Unsupported media type in the transfer (426)."} System.Exception {ComponentPro.Net.FtpException} Options {ComponentPro.IO.TransferOptions} ComponentPro.IO.MultiFileOperationOptions {ComponentPro.IO.TransferOptions} Started {24-05-2018 10:01:35} System.DateTime Threads Count = 1 ComponentPro.IO.ITransferThreadInfoCollection {ComponentPro.IO.Transferrer.c_CKM.c_G1M} TotalBytes 159642332 long TotalBytesSkipped 0 long TotalBytesTransferred 6230 long TotalDirectories 0 int TotalFiles 3 int TotalPercentage 0.00390247349 float
 
answered 5/24/2018 4:41:53 AM
add a comment
0
Your server does not work correctly with absolute path. You can replace "client.GetCurrentDirectory()" with just an empty string "string.Empty" and try again.
 
answered 5/23/2018 5:12:32 PM
  Any other alternative to transfer file? abhishekzararia 5/29/2018 10:29:20 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged ftp ftp-expert or ask your own question.