Ok I went ahead and logged information on the OnDispla, OnError and
OnResponse events. 

Not sure if this gives us more information to go on.  Any ideas?

Thanks in advance.

"4/23/2014 00:03:28", "  1", "01 Focus", "   46", "Kellie", "  626", "Start
internet FTP transfer of file CHECK0226201400000259A.FTP size 259."
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnResponse 0 220 ICS FTP Server
ready"
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 0 220 ICS FTP Server
ready Msg=< 220 ICS FTP Server ready"
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", "  628", "FTP
Session Connected, error = 0."
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 220 220 ICS FTP
Server ready Msg=> USER NrG-2526"
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnResponse 220 331 Password
required for NrG-2526."
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 331 331 Password
required for NrG-2526. Msg=< 331 Password required for NrG-2526."
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 331 331 Password
required for NrG-2526. Msg=> PASS _______"
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnResponse 331 230 User
NrG-2526 logged in."
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 230 230 User NrG-2526
logged in. Msg=< 230 User NrG-2526 logged in."
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 230 230 User NrG-2526
logged in. Msg=> CWD c:\focus\"
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnResponse 230 250 CWD command
successful. "c:/pollingdata/upload/" is current directory."
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 250 250 CWD command
successful. "c:/pollingdata/upload/" is current directory. Msg=< 250 CWD
command successful. "c:/pollingdata/upload/" is current directory."
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 250 250 CWD command
successful. "c:/pollingdata/upload/" is current directory. Msg=> TYPE A"
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnResponse 250 200 Type set to
A."
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 200 200 Type set to
A. Msg=< 200 Type set to A."
"4/23/2014 00:03:29", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 200 200 Type set to
A. Msg=> PASV"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnResponse 200 227 Entering
Passive Mode (208,77,57,139,209,91)."
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 227 227 Entering
Passive Mode (208,77,57,139,209,91). Msg=< 227 Entering Passive Mode
(208,77,57,139,209,91)."
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 227 227 Entering
Passive Mode (208,77,57,139,209,91). Msg=> STOR CHECK0226201400000259A.FTP"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnResponse 227 150 Opening data
connection for CHECK0226201400000259A.FTP.0045.TMP."
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 150 150 Opening data
connection for CHECK0226201400000259A.FTP.0045.TMP. Msg=< 150 Opening data
connection for CHECK0226201400000259A.FTP.0045.TMP."
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnResponse 150 226 File
received ok"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 226 226 File received
ok Msg=< 226 File received ok"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 226 226 File received
ok Msg=! 259 bytes received/sent in 0 seconds (592 Bytes/sec)"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP  OnDisplay 226 226 File received
ok Msg=> QUIT"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK0226201400000259A.FTP 226 226 File received ok"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", "  629", "FTP
Request Done : Request 18 Done. StatusCode = 226 LastResponse was : '226
File received ok Error = 500 (500 Control connection closed. Connection
aborted (Winsock error #10053))."
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", "  884", "FTP
transmit of file CHECK0226201400000259A.FTP failed."




-----Original Message-----
From: TWSocket [mailto:twsocket-boun...@lists.elists.org] On Behalf Of Angus
Robertson - Magenta Systems Ltd
Sent: Tuesday, April 22, 2014 4:07 AM
To: twsocket@lists.elists.org
Subject: Re: [twsocket] TFtipClient and TFtpServer and 10053 error after
Transmit successful...

> The Transmit method returns failure even though the file is 
> successfully uploaded. Notice how the request is 18, the StatusCode is 
> 226 but an Error 500 is returned with a winsock error of #10053).

226 is success, so no idea why you get 500 as well.  

The transmit method does several commands in sequence, but you are not
logging enough to see where the error is happening.  You really need to log
the onDisplay, OnError and OnResponse events so you see all the command
responses being processed. 

#10053 is connection aborted, which generally does not matter if the
important commands have already been successful. 

Angus


--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

-----Original Message-----
From: TWSocket [mailto:twsocket-boun...@lists.elists.org] On Behalf Of Angus
Robertson - Magenta Systems Ltd
Sent: Tuesday, April 22, 2014 4:07 AM
To: twsocket@lists.elists.org
Subject: Re: [twsocket] TFtipClient and TFtpServer and 10053 error after
Transmit successful...

> The Transmit method returns failure even though the file is 
> successfully uploaded. Notice how the request is 18, the StatusCode is 
> 226 but an Error 500 is returned with a winsock error of #10053).

226 is success, so no idea why you get 500 as well.  

The transmit method does several commands in sequence, but you are not
logging enough to see where the error is happening.  You really need to log
the onDisplay, OnError and OnResponse events so you see all the command
responses being processed. 

#10053 is connection aborted, which generally does not matter if the
important commands have already been successful. 

Angus


--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to