Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

RM

Posts

2

Joined

Fri May 04, 2012 9:33 pm

550 RETR failed: Could not create data connection.

by RM » Fri May 04, 2012 9:40 pm

Can someone explain what might cause this error? Thanks in advance

DEBUG [FTPControlSocket] 4 May 2012 08:15:08.766 : ---> RETR MyFile.txt
DEBUG [FTPControlSocket] 4 May 2012 08:15:08.922 : 150 RETR command started
DEBUG [FTPConnection] 4 May 2012 08:15:08.922 : DownloadFile(D:\MyDir\MyFile.txt,MyFile.txt)
DEBUG [FTPControlSocket] 4 May 2012 08:15:08.938 : ---> PASV
DEBUG [FTPControlSocket] 4 May 2012 08:15:11.547 : 550 RETR failed: Could not create data connection.
INFO [FTPControlSocket] 4 May 2012 08:15:11.547 : Expected reply codes = [227] (strict=False)
ERROR [FTPClient] 4 May 2012 08:15:11.563 : Caught exception
ERROR [FTPClient] 4 May 2012 08:15:11.563 : EnterpriseDT.Net.Ftp.FTPException: RETR failed: Could not create data connection. (code=550)
ERROR [FTPClient] 4 May 2012 08:15:11.563 : at EnterpriseDT.Net.Ftp.FTPControlSocket.ValidateReply(FTPReply reply, String[] expectedReplyCodes)
ERROR [FTPClient] 4 May 2012 08:15:11.563 : at EnterpriseDT.Net.Ftp.FTPControlSocket.CreateDataSocketPASV()
ERROR [FTPClient] 4 May 2012 08:15:11.563 : at EnterpriseDT.Net.Ftp.FTPClient.InitGet(String remoteFile)
ERROR [FTPClient] 4 May 2012 08:15:11.563 : at EnterpriseDT.Net.Ftp.FTPClient.GetBinary(String localPath, String remoteFile)
DEBUG [FTPConnection] 4 May 2012 08:15:11.579 : Closing connection (instance=0)
DEBUG [FTPFileFactory] 4 May 2012 08:15:11.579 : Defaulting to Unix parsing
DEBUG [FTPControlSocket] 4 May 2012 08:15:11.594 : ---> QUIT
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: 550 RETR failed: Could not create data connection.

by support2 » Fri May 04, 2012 10:33 pm

This is causing the problem:

DEBUG [FTPControlSocket] 4 May 2012 08:15:08.766 : ---> RETR MyFile.txt

How is the RETR getting there? It should be *after* PASV.
no avatar
User

RM

Posts

2

Joined

Fri May 04, 2012 9:33 pm

by RM » Sat May 05, 2012 1:54 am

Thanks for the quick response. We actually fixed it.
It seemed we got this error if we tried to download any file after a failed call to FTPConnection.Exists(). For some reason (on this particular server) this returned an error if the file actually didn't exist, and after that it couldn't download.
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Sat May 05, 2012 9:42 am

Ok that explains it. Thanks for following up.

Who is online

Users browsing this forum: No registered users and 9 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron