Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
+1 vote
327 views
in .NET FTP by (140 points)
Hello,

We are using edtFTpnetPro version 9.6.0.40 and when connecting to a FTP folder to get responses, we are seeing a "Cannot access a disposed object.  Object name: 'System.Net.Sockets.Socket'" exception.

I have turned on debugging and attached the dump from the log below.  The log indicates "Failed to connect to 208.83.148.150:22 within timeout 300000 ms". So 300000 ms is 5 minutes, but when I debug the issue it takes about 23 seconds from calling SecureFTPConnection.Connect() until the exception is thrown, which is not close to the actual timeout amount of 5 minutes so I'm skeptical that it is actually timing out on the connection.  Curiously, when I connect with FileZilla, it takes about 23 seconds to connect and display the directory listing.  There are 3,774 files in the directory.  I suspect that the issue is not a timeout, but rather too many files in the directory listing that is causing the issue.

I cannot change how many files are in this directory, I have tried to check the directory more frequently to try to reduce how many files may be in it but I've seen this issue appear seconds after checking the directory, so I really need to be able to handle a directory with that amount of files.

Is this an issue with edtFTpnetPro?  Is there an upper limit of how many files can be in a directory? Is there any fix for this?

At this point I think I may be looking for an alternative control.

Here is what is in the log:

DEBUG [SFTPMessageStore] 14 Aug 2020 09:15:55.640 :  Set timeout=300000

DEBUG [LicenseProperties] 14 Aug 2020 09:16:00.170 :  Owner=eSolutionsInc; key=XXX-XXXX-XXXX-XXXX

DEBUG [LicenseProperties] 14 Aug 2020 09:16:00.171 :  Expiry=12/31/9999 11:59:59 PM

DEBUG [LicenseProperties] 14 Aug 2020 09:16:00.172 :  Flags: Flag 0=False;Flag 1=True;Flag 2=True;Flag 3=False;Flag 4=False;Flag 5=False;Flag 6=False;Flag 7=False;Flag 8=False;Flag 9=False;Flag 10=False;Flag 11=False

DEBUG [LicenseProperties] 14 Aug 2020 09:16:00.172 :  IsTrial=False,Product=EdtFTPnetPRO

DEBUG [LicenseProperties] 14 Aug 2020 09:16:00.173 :  Owner=eSolutionsInc,Key=XXX-XXXX-XXXX-XXXX,IsTrial=False,Product=EdtFTPnetPRO

INFO [LicenseProperties] 14 Aug 2020 09:16:00.173 :  Licence expiry date: 12/31/9999

INFO [LicenseProperties] 14 Aug 2020 09:16:00.174 :  Production license

DEBUG [FTPConnection] 14 Aug 2020 09:16:00.174 :  Set LocalDirectory='C:\Program Files (x86)\IIS Express'

DEBUG [SecureFTPConnection] 14 Aug 2020 09:16:00.175 :  Set LocalDirectory to C:\Program Files (x86)\IIS Express

DEBUG [LicenseProperties] 14 Aug 2020 09:16:00.177 :  Owner=eSolutionsInc; key=XXX-XXXX-XXXX-XXXX

DEBUG [LicenseProperties] 14 Aug 2020 09:16:00.177 :  Expiry=12/31/9999 11:59:59 PM

DEBUG [LicenseProperties] 14 Aug 2020 09:16:00.177 :  Flags: Flag 0=False;Flag 1=True;Flag 2=True;Flag 3=False;Flag 4=False;Flag 5=False;Flag 6=False;Flag 7=False;Flag 8=False;Flag 9=False;Flag 10=False;Flag 11=False

DEBUG [LicenseProperties] 14 Aug 2020 09:16:00.177 :  IsTrial=False,Product=EdtFTPnetPRO

DEBUG [LicenseProperties] 14 Aug 2020 09:16:00.177 :  Owner=eSolutionsInc,Key=XXX-XXXX-XXXX-XXXX,IsTrial=False,Product=EdtFTPnetPRO

INFO [LicenseProperties] 14 Aug 2020 09:16:00.177 :  Licence expiry date: 12/31/9999

INFO [LicenseProperties] 14 Aug 2020 09:16:00.177 :  Production license

DEBUG [SSHSCPClient] 14 Aug 2020 09:16:00.178 :  Setting up fallback kbi prompt based on supplied password

DEBUG [BaseSocket] 14 Aug 2020 09:16:00.179 :  Set socket timeout to 300000

INFO [SSHFTPClient] 14 Aug 2020 09:16:00.180 :  NoDelay=True

DEBUG [HostNameResolver] 14 Aug 2020 09:16:00.181 :  Resolving 208.83.148.150

DEBUG [HostNameResolver] 14 Aug 2020 09:16:00.182 :  208.83.148.150 resolved to 208.83.148.150

DEBUG [SSHSCPClient] 14 Aug 2020 09:16:00.182 :  Connecting directly to SFTP server 208.83.148.150:22

INFO [BaseSocket] 14 Aug 2020 09:16:00.182 :  Connecting to 208.83.148.150:22 with timeout 300000 ms

ERROR [BaseSocket] 14 Aug 2020 09:16:21.194 :  Failed to connect to 208.83.148.150:22 within timeout 300000 ms

1 Answer

0 votes
by (9.1k points)
Hi,

There's no limit on the number of files. Can you post a snippet of your code?

Categories

...