The method ftp.NumFilesAndDirs is hanging up. I am not getting any errors. We are running in as a console executable. Do you have any ideas. The connection string and directory it points to all were fine, just not getting the number of files back.
When NumFilesAndDirs is accessed, the Chilkat FTP2 component may need to fetch a directory listing from the FTP server. It would only need to do this if the remote directory was changed via the ChangeRemoteDir method, or if the ListPattern property was updated.
If a directory listing is fetched, there might be a delay while this is happening. If your application is setup to receive AbortCheck events, these events will be fired while this is happening.
In FTP, downloading a directory listing is (in effect) the same as a file transfer — in the sense that a data connection is established for sending the directory listing. If your Active/Passive setting is wrong for your situation, then the establishment of the data connection could be blocked and the NumFilesAndDirs will hang for the length of time according to the ConnectTimeout property settings. If this happens, check to see if switching from Active mode to Passive mode solves the problem.