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

mikeschell

Posts

4

Joined

Mon Oct 08, 2012 10:04 pm

Download Fails On Some Servers After 'REST 0' Sent

by mikeschell » Mon Oct 08, 2012 10:25 pm

The FTPConnection.DownloadFile() method is failing on my PROD FTP server but not TEST server. After rerteiving a list of files and then choosing to download one the PROD server appears to choke on the 'REST 0' command that is automatically sent by the FTP library. The prod server responds with a 550, the TEST server issues a 500 after the 'REST 0' is sent. I'm not sure if the client library can recover from the 500 and not 550 or the PROD server is just says no more.

I'm also guessing that even if the server does not support REST, nor the client library as I have read, a 'REST 0' prior to the RETR when using DownloadFile() is standard FTP protocol. I have posted log below TEST server looks exactly the same up to the 550 response, where it issued a 500.

I am unable to find any docs on turning off the 'REST 0' command sent prior to download. I am only a user of the FTP servers but I could offer up suggestions to resolve. Anyone offer any suggestions, I am using the free edition of the library?


DEBUG [FTPConnection] 4 Oct 2012 10:28:45.690 : DownloadFile(C:\SFTP Data\REI\CardOrders\REIGCINC3_20121004094748.json,REIGCINC3_20121004094748.json)
DEBUG [FTPControlSocket] 4 Oct 2012 10:28:45.722 : ---> REST 0
DEBUG [FTPControlSocket] 4 Oct 2012 10:28:45.769 : 550 Operation is not supported under Connect:Enterprise FTP server.
INFO [FTPControlSocket] 4 Oct 2012 10:28:45.769 : Expected reply codes = [350] (strict=False)
DEBUG [FTPClient] 4 Oct 2012 10:28:45.800 : REST failed which is ok (Operation is not supported under Connect:Enterprise FTP server. (code=550))
DEBUG [FTPControlSocket] 4 Oct 2012 10:28:45.909 : Setting socket timeout=500
ERROR [FTPControlSocket] 4 Oct 2012 10:28:47.003 : Read failed ('' read so far)
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Download Fails On Some Servers After 'REST 0' Sent

by support2 » Mon Oct 08, 2012 10:54 pm

Can you please email support at enterprisedt dot com a full log file at the Debug level?
no avatar
User

mikeschell

Posts

4

Joined

Mon Oct 08, 2012 10:04 pm

by mikeschell » Tue Oct 09, 2012 2:37 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Tue Oct 09, 2012 11:31 pm

no avatar
User

mikeschell

Posts

4

Joined

Mon Oct 08, 2012 10:04 pm

by mikeschell » Wed Oct 10, 2012 12:07 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Wed Oct 10, 2012 3:05 pm

no avatar
User

mikeschell

Posts

4

Joined

Mon Oct 08, 2012 10:04 pm

by mikeschell » Wed Oct 10, 2012 10:10 pm


Who is online

Users browsing this forum: Google [Bot] and 30 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron