TimeOut Problem

I am trying to upload to an ftp server using AUTH TLS. I am getting a timeout error when request a listing or try to upload a file. Here is the log:

[20060317 22:47:08] 220-FTPSECRE IBM FTP CS V1R4 at MVSSY2.TEALE.CA.GOV, 22:46:19 on 2006-03-17.
[20060317 22:47:08] 220 Connection will not timeout.
[20060317 22:47:08] AUTH TLS
[20060317 22:47:09] 234 Security environment established - ready for negotiation
[20060317 22:47:09] Connected. Exchanging encryption keys...
[20060317 22:47:09] Session Cipher: 128 bit RC4
[20060317 22:47:09] TLS encrypted session established.
[20060317 22:47:09] PBSZ 0
[20060317 22:47:09] 200 Protection buffer size accepted
[20060317 22:47:09] USER xxxxxxxx
[20060317 22:47:09] 331 Send password please.
[20060317 22:47:09] PASS xxxxxxxx
[20060317 22:47:10] 230 HDTWIXP3 is logged on. Working directory is "HDTWIXP3.".
[20060317 22:47:10] SYST
[20060317 22:47:10] 215 MVS is the operating system of this server. FTP Server is running on z/OS.
[20060317 22:47:10] FEAT
[20060317 22:47:10] 211- Extensions supported
[20060317 22:47:10] SIZE
[20060317 22:47:10] AUTH TLS
[20060317 22:47:10] PBSZ
[20060317 22:47:10] PROT
[20060317 22:47:10] 211 End
[20060317 22:47:10] TYPE I
[20060317 22:47:10] 200 Representation type is Image
[20060317 22:47:10] REST 0
[20060317 22:47:10] 504 Restart not allowed with active security mechanism
[20060317 22:47:10] PWD
[20060317 22:47:10] 257 "'HDTWIXP3.'" is working directory.
[20060317 22:47:10] SITE LRECL=11 BLOCKSIZE=4400 RECFM=FB
[20060317 22:47:10] 200 SITE command was accepted
[20060317 22:47:10] CWD 'HD.WIX8140.HDVWIXP.'
[20060317 22:47:10] 250 "HD.WIX8140.HDVWIXP." is the working directory name prefix.
[20060317 22:47:10] PWD
[20060317 22:47:10] 257 "'HD.WIX8140.HDVWIXP.'" is working directory.
[20060317 22:47:12] FEAT
[20060317 22:47:12] 211- Extensions supported
[20060317 22:47:13] SIZE
[20060317 22:47:13] AUTH TLS
[20060317 22:47:13] PBSZ
[20060317 22:47:13] PROT
[20060317 22:47:13] 211 End
[20060317 22:47:13] TYPE A
[20060317 22:47:13] 200 Representation type is Ascii NonPrint
[20060317 22:47:13] PROT P
[20060317 22:47:13] 200 Data connection protection set to private
[20060317 22:47:13] PASV
[20060317 22:47:13] 227 Entering Passive Mode (134,187,32,2,196,56)
[20060317 22:47:13] LIST
[20060317 22:47:43] Timeout (30s).
[20060317 22:47:43] 3
[20060317 22:47:43] Client closed the connection.

Can anybody help me?

Set the Passive property to false/VARIANT_FALSE and try again. Always test with the SmartFTP Client and with other FTP clients if you have the same problem.

Regards,
SmartFTP

I made that change in my vb code to:

objFTP.Passive = False

Now it gets past the list command, but my upload is failing:

Dim nRestartLo: nRestartLo = 0
Dim nRestartHi: nRestartHi = 0
Dim vDataPath As String
Dim strMsg

objFTP.UploadFile(LocalFile, filetosend, nRestartLo, nRestartHi)


Here is the log:

227 Entering Passive Mode (134,187,32,2,196,118)
[20060318 01:34:41] LIST -T
[20060318 01:34:41] 550 No data sets found.
[20060318 01:34:41] TYPE A
[20060318 01:34:41] 200 Representation type is Ascii NonPrint
[20060318 01:34:41] PASV
[20060318 01:34:41] 227 Entering Passive Mode (134,187,32,2,196,118)
[20060318 01:34:41] PROT P
[20060318 01:34:41] 200 Data connection protection set to private
[20060318 01:34:41] PORT 192,77,14,40,6,202
[20060318 01:34:41] 200 Port request OK.
[20060318 01:34:41] STOR D060317.T173435.R123456
[20060318 01:34:51] Timeout (30s).
[20060318 01:34:51] 3
[20060318 01:34:51] Client closed the connection.

I have tested it with SmartFTP Client 2.0 and everything works just fine.

Do you have any other ideas?

Can you post the log from SmartFTP? Then we can compare the differences and see what settings have to be changed.