Problem with PutFile - Enterprise UNIX 2.2 server (wodFtpDLX / wodFtpDLX.NET)
I'm having trouble uploading a file to an Enterprise UNIX server. Download is working fine, but when I upload I'm receiving the following error:
Ftp1_DoneEvent Args.Error: 500 Args.Description: Unable to write data to the transport connection: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'..
If you would like the complete log file for the entire session, let me know.
Thanks, Dave
Re: Problem with PutFile - Enterprise UNIX 2.2 ser
Dave,
First please try with some other FTP client. What is result?
Maybe you have problem with permissions (same as your other question).
If problem isn't with permissions, please send us FTPReply:
--------------------------------------------
Private Sub dlx1_FtpReplyEvent(ByVal Sender As Object, ByVal Args As WeOnlyDo.Client.FtpReplyArgs) Handles dlx1.FtpReplyEvent
Debug.Print(Args.Command & & Args.ReplyText)
End Sub
--------------------------------------------
Any chance that we can connect to your server and duplcate your problem?
You can send us your private information to techsuppoort@weonlydo.com
Drazen
Re: Problem with PutFile - Enterprise UNIX 2.2 ser
It's not permissions. Here's the entire log file.
====================================================================================================
11/30/2006 4:10:15 PM MTPS_FTP (2.0.0.2) starting.
====================================================================================================
CommandLineArgs:
\EDISRV05SERVERAPPS$PRODMTPS_FTPMTPS_FTP.EXE -j:P-SDL-USB-OAX-035 -S:USBank -T:UPLOAD -L:\EDISRV05Jobs$PRODSDLUSBOAXx320.mmcspbal.e510 -R:/ce206810/ -l:\EDISRV05Jobs$PRODSDLUSBOAXSDLUSBOAX-035-FTP_2006-11-30_16-10-15.LOG -O:Y -B:N
----------------------------------------------------------------------------------------------------
-j:P-SDL-USB-OAX-035
-S:USBank
-T:UPLOAD
-L:\EDISRV05Jobs$PRODSDLUSBOAXx320.mmcspbal.e510
-R:/ce206810/
-l:\EDISRV05Jobs$PRODSDLUSBOAXSDLUSBOAX-035-FTP_2006-11-30_16-10-15.LOG
-O:Y
-B:N
----------------------------------------------------------------------------------------------------
11/30/2006 4:10:17 PM Successfully connected to CLMSQL02PROD
----------------------------------------------------------------------------------------------------
Connecting to Site: USBank Settings: Protocol=FTPSwithdata Port=20021 PASV=True TransferMode=AscII
Status: Connecting to server
Response: 220 <<<Connect:Enterprise UNIX 2.2.00 Secure FTP>>> at ceweba1p FTP server ready. Time = 16:10:19
Status: Initializing secure connection
Command: AUTH TLS
Response: 234 AUTH TLS-C/TLS OK.
Status: Setting data channel security
Command: PBSZ 0
Response: 200 PBSZ 0 OK.
Command: PROT P
Response: 200 PROT P OK, data channel will be secured.
Status: Sending authentication data
Command: USER ce206800
Response: 331 Password required for ce206800.
Command: PASS ********
Response: 230 Connect:Enterprise UNIX login ok, access restrictions apply.
Command: PBSZ 0
Response: 200 PBSZ 0 OK.
Command: PROT P
Response: 200 PROT P OK, data channel will be secured.
Command: PWD
Response: 257 /ce206800 is current directory.
Status: Connected to server - idle
Command: CWD / (command was issued by RawSend)
Status: Executing command on the server
Response: 250 CWD to '/' successful
Status: Connected to server - idle
Command: PWD (command was issued by RawSend)
Status: Executing command on the server
Response: 257 / is current directory.
Status: Connected to server - idle
Calling Ftp1.ListDir(/ce206810/)
Status: Setting transfer mode
Command: TYPE A
Response: 200 Type set to A.
Status: Changing current directory
Command: CWD /ce206810/
Response: 250 CWD command successful.
Status: Downloading directory list from the server
Status: Getting secondary data channel
Command: PASV
Response: 227 Entering Passive Mode (170,135,216,250,82,18)
Status: Downloading directory list from the server
Command: LIST
Response: 150 Opening ASCII mode data connection for .
-C-TE-----FTS A ce206800 90770 1897 Nov 24 16:10 x320.mmcspbal.e510
-ART------TCP A ceunix 48910 2130 Nov 24 16:10 statfile.90770
-C-TE-----FTS A ce206800 112811 823 Nov 25 16:10 x320.mmcspbal.e510
-ART------TCP A ceunix 107457 2130 Nov 25 16:10 statfile.112811
-C-TE-----FTS A ce206800 124904 470 Nov 26 16:10 x320.mmcspbal.e510
-ART------TCP A ceunix 93187 2130 Nov 26 16:10 statfile.124904
-C-TE-----FTS A ce206800 100094 1206 Nov 27 16:19 x320.mmcspbal.e510
-ART------TCP A ceunix 88895 2130 Nov 27 16:19 statfile.100094
-C-TE-----FTS A ce206800 83810 1171 Nov 28 16:10 x320.mmcspbal.e510
-ART------TCP A ceunix 19273 2130 Nov 28 16:10 statfile.83810
-C-TE-----FTS A ce206800 103876 5003 Nov 29 16:10 x320.mmcspbal.e510
-ART------TCP A ceunix 15750 2129 Nov 29 16:10 statfile.103876
Response: 226 Transfer complete.
Total number of batches listed: 12
Status: Connected to server - idle
Total objects in DirItems structure = 12
(Remote
Re: Problem with PutFile - Enterprise UNIX 2.2 ser
Previous log file was chopped off, here's continuation.
Total objects in DirItems structure = 12
(Remote File: /ce206810/x320.mmcspbal.e510 exists and OverWrite parm = Y. File will be over-written.)
Calling Ftp1.PutFile(\EDISRV05Jobs$PRODSDLUSBOAXx320.mmcspbal.e510,/ce206810/x320.mmcspbal.e510)
Status: Setting transfer mode
Command: TYPE A
Response: 200 Type set to A.
Status: Changing current directory
Command: CWD /ce206810/x320.mmcspbal.e510
Response: 550 Invalid pathname: /x320.mmcspbal.e510, Id may be no longer than 8 bytes).
Command: CWD /ce206810
Response: 250 CWD command successful.
Status: Sending data to server
Status: Getting secondary data channel
Command: PASV
Response: 227 Entering Passive Mode (170,135,216,250,82,19)
Status: Sending data to server
Command: STOR x320.mmcspbal.e510
Response: 150 Opening ASCII mode data connection for x320.mmcspbal.e510.
Status: Connected to server - idle
====================================================================================================
11/30/2006 4:10:25 PM ***Error*** Ftp1_DoneEvent Args.Error: 500 Args.Description: Unable to write data to the transport connection: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.. Exiting with RC=9
====================================================================================================
Re: Problem with PutFile - Enterprise UNIX 2.2 ser
Dave,
Are you sure that you use right form for local path?
If you set TransferMode to Binary what is result?
I can't duplicate your problem. Any chance that we can connect to your server and duplicate your problem?
Drazen
Re: Problem with PutFile - Enterprise UNIX 2.2 ser
The local path is correct. When I pasted the log file and submitted the post, almost all of the back-slashes are getting stripped out.
Binary or ASCII doesn't seem to make any difference.
I do have another example of the same problem on a different server (this one WS_FTP Server 5.0.4). The common thing between the two are that they both are using the FTPSwithdata protocol.
Should I perhaps send that logfile to your email address instead of trying to post the whole thing?
Re: Problem with PutFile - Enterprise UNIX 2.2 ser
Dave,
I have just tried to upload file to WS_FTP 5.04 server and didn't have any problem. I have used FTPS with data protocol.
This is my code:
--------------------------------------
Public Class Form1
Dim WithEvents dlx1 As WeOnlyDo.Client.FtpDLX
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
dlx1 = New WeOnlyDo.Client.FtpDLX
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
dlx1.Hostname = 127.0.0.1
dlx1.Protocol = WeOnlyDo.Client.Protocols.FTPSwithdata
dlx1.Login = drazen
dlx1.Password = drazen
dlx1.Connect()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
dlx1.PutFile( c:x320.mmcspbal2.e510 , /users/drazen/x320.mmcspbal2.e510 )
End Sub
Private Sub dlx1_FtpReplyEvent(ByVal Sender As Object, ByVal Args As WeOnlyDo.Client.FtpReplyArgs) Handles dlx1.FtpReplyEvent
Debug.Print(Args.Command & & Args.ReplyText)
End Sub
End Class
--------------------------------------
What version of wodFtpDLX.NET you are using? Latest is 1.1.5.55. Please download latest version if you don't have it and let us know how it goes.
Drazen
Re: Problem with PutFile - Enterprise UNIX 2.2 ser
This problem appears to be fixed with version 1.1.5.56.
[:happy:]
Thanks, Dave