login about faq

Hi

We had some customer upgrade their computers from Windows XP to Windows 7 and now we are unable to download files from the FTP server (Filezilla Server 9.5). We have been downloading files for years without a problem but now we get the following error:

ChilkatLog:
  GetFile:
    DllDate: Mar 27 2014
    ChilkatVersion: 9.5.0.23
    UnlockPrefix: SIMONWFTP
    Username: DELLXPS:Simon
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 0
    ProgressMonitoring:
      enabled: yes
      heartbeatMs: 0
      sendBufferSize: 65536
    --ProgressMonitoring
    AutoGetSizeForProgress: 0
    downloadToFile:
      localFilename: c:\temp\FC042015.153
      downloadToOutput:
        ModeZ: 0
        BinaryMode: 1
        setupDataConnection:
          passive transfer mode
          setupPassiveDataSocket:
            sendCommand:
              sendingCommand: PASV
            --sendCommand
            readCommandResponse:
              replyLineQP: 227 Entering Passive Mode (10,100,43,99,19,169)
              commandResponse: 227 Entering Passive Mode (10,100,43,99,19,169)
              statusCode: 227
            --readCommandResponse
            dataConnect:
              hostname: 10.100.43.99
              port: 5033
              connect2:
                failReason2: 7
              --connect2
              dataConnectSuccess: 0
            --dataConnect
            setupPassiveDataSocket dataConnect failed.
          --setupPassiveDataSocket
          Failed to setup passive data socket for upload
        --setupDataConnection
      --downloadToOutput
    --downloadToFile
    TotalTimeMs: Elapsed time: 21046 millisec
    Failed.
  --GetFile
--ChilkatLog

However we can download the files using Filezilla client so I am unsure as to why your product is unable to do the same. I have also tried using the Windows API (Windows 2012 Server R2) and it too fails.

Simon

asked Apr 21 '15 at 20:16

swapna's gravatar image

swapna
1113

edited Apr 21 '15 at 22:47

jpbro's gravatar image

jpbro ♦
1.1k2618

1

Though the cause may be somewhere outside of Chilkat entirely, I would always suggest to use the latest version of the component. The one you are using is already quite old. Even if I can find no release notes indicating a fix, I would still suggest to upgrade and enable verbose logging. I do not understand your reference to Windows API.

(Apr 22 '15 at 03:29) roan98dk

When I said I used the WinAPI I meant I used the WinINet Function. Version 9.5.0.23 does not seam that old as the newest version is on 9.5.0.48.

(Apr 22 '15 at 11:34) swapna

If you check the logs in your Filezilla client do they show a failure with PASV mode, and switching to Active FTP? If so that explains why the Filezilla client works and the code above doesn't, as Filezilla can automatically switch between passive and active mode by default.

It could be that on Windows 7 you are seeing the effects of a bug in the passive mode FTP handling, there is a hotfix available here: https://support.microsoft.com/en-us/kb/2754804 . Another workaround is to ensure that the network stack driver is IPv4 only, not a dual IPv4 and IPv6 stack.

Could also be a firewall issue, the range of dynamic ports used changed from XP where it was in the range 1024-5000, from Vista onwards the range for passive ftp is 49152-65535 , see https://support.microsoft.com/en-us/kb/929851 for details. If there's a firewall between the customer and the ftp server restricting the allowed port range, the firewall may need to be reconfigured, however I'd expect this to have also been an issue with the Filezilla client on the same Windows 7 PCs.

Dan

link

answered Apr 22 '15 at 03:46

AgeofStrife's gravatar image

AgeofStrife
9614

I think the problem is related to the dual IPv4 and IPv6 stack issue because the firewall is not the problem since the issue remains even with the firewall disabled and Filezilla is not switching to active mode. The passive port range is set by our tech. support.

link

answered Apr 22 '15 at 10:04

swapna's gravatar image

swapna
1113

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×131

Asked: Apr 21 '15 at 20:16

Seen: 918 times

Last updated: Apr 22 '15 at 11:34

powered by OSQA