Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
12.4k views
in .NET FTP by (340 points)
Hi,
im using edtFTPnet.dll V2.0.0.0 im my app. The app connects to an ftp-server with no problems, but when trying to download 1 small file i get an error.
The connection goes via an proxy as you can see in the log. I tried the same with filezilla and does not get any error message.

I Include the logfile and a debugging log from filezilla.

Any help is welcome

tia georg


Here the logfile from the ftpconnection:
DEBUG [FTPConnection] 21 Aug 2009 11:19:19.855 : Set LocalDirectory='C:\Programme\xxxxxx'
DEBUG [HostNameResolver] 21 Aug 2009 11:19:21.823 : proxy.services.xxx resolved to 10.10.10.10
DEBUG [FTPClient] 21 Aug 2009 11:19:21.823 : Connecting to 10.10.10.10:21
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:21.917 : Setting socket timeout=120000
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:21.933 : Command encoding=System.Text.ASCIIEncoding
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:21.933 : StrictReturnCodes=False
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:21.995 : 220 Blue Coat FTP Service
DEBUG [FTPConnection] 21 Aug 2009 11:19:21.995 : Connected to proxy.services.xxx
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:26.230 : ---> USER FTPUSER@FTPHOST PROXYPASSWORD
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:26.339 : 331 Enter password.
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:26.339 : ---> PASS ********
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:26.417 : 332 Enter proxy password.
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:27.386 : ---> SIZE test.txt
ERROR [FTPControlSocket] 21 Aug 2009 11:19:27.464 : Control channel unexpectedly closed ('' read so far)
ERROR [FTPControlSocket] 21 Aug 2009 11:19:27.495 : Exception in SendCommand : EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadLine()
at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadReply()
at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)
DEBUG [FTPFileFactory] 21 Aug 2009 11:19:27.667 : Defaulting to Unix parsing
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:27.667 : ---> QUIT
ERROR [FTPControlSocket] 21 Aug 2009 11:19:27.667 : Control channel unexpectedly closed ('' read so far)
ERROR [FTPControlSocket] 21 Aug 2009 11:19:27.667 : Exception in SendCommand : EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadLine()
at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadReply()
at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)

**********************************
Here the filezilla log (same server, same proxy) The filezilla is a german version, but i hope its ok.

2009-08-21 12:10:16 536 1 Status: Benutze Proxy proxy.services.xxx
2009-08-21 12:10:16 536 1 Status: Aufl

2 Answers

0 votes
by (162k points)
The clue is here:

332 Enter proxy password.
---> SIZE test.txt

and in Filezilla

332 Enter proxy password.
ACCT ********

Try setting FTPConnection.AccountInfo to the proxy password, and the ACCT command should be used as in Filezilla.
0 votes
by (340 points)
Thanks for your hint. This pointed me the way to my fault. I did disable autologin for the ftpconnection for debugging purposes and did use the connect method and login method to access the ftp server. This was the cause of my problem cause i was thinking login would work the same way as autologin. a look at the source code now showed me that performautologin handles the request for the accountinfo (332) but login doesnt. So the accountinfo was not send at all.

i fixed this and now its perfect again.

thanks
Georg

Categories

...