Login  
Search All Forums
Dart Home | Custom Development Reply | General Questions Topics | Forums   
AuthorForum: General Questions
Topic: No error message by Put() but there is no file on FTP Server
mukta_batra
rajendra_singh@infosys.com

From: Chandigarh, India
Posts: 9
Member Since: 06/12/09
posted April 9, 2014 7:53 PM

Hi,
I am facing following issue -

I have a C#.NET windows form application which does FTP to a Hardware device running a FTP server [please note-This is not a PC FTP server]. The issue is - Some times [1-2 times out of 5] application transfers the files without any error [i.e. Put method did not throw any exception] and application proceeds its functionality assuming that file is transferred successfully but if we check on FTP server [running on hardware], transferred files are not present. Can anyone guide me in this issue and suggest where the issue is; FTP client side or FTP Server side?
We analyzed wireshark logs also and found that there are couple of messages of "TCP Window Full" followed by Update/ACK message. Is this the reason for this issue? What could be the probable solution for this?
FTP client BLOCKSIZE is set to 1024.

Can anyone help?

Any help will be highly appreciable.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted April 10, 2014 10:05 AM

Hello,

Our component will only throw an exception if the server returned a negative error code (4xx or 5xx) or if the socket throws an exception. Can you provide the log? If the event is not implemented within your application, our included FTP Client sample includes a 'View Log Window' option under the File menu. Just post the relevant part (from when you start uploading the file, to after it completes), and ensure you don't include your username and password.

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

mukta_batra
rajendra_singh@infosys.com

From: Chandigarh, India
Posts: 9
Member Since: 06/12/09
posted April 10, 2014 7:12 PM

Thanks a lot for the reply.

Actually application transfers 50 to 100 files to FTP server [in Hardware] one by one. When i debugged the code then found out that during the file transfer itself [after 30 files transfer, this number is not fixed], Put() method throws following exception while transferring next file-

=== Exception Data =========================
System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
  at Dart.PowerTCP.Ftp.c.Invoke(Delegate A_0, Object[] A_1)
  at Dart.PowerTCP.Ftp.Ftp.Put(String localFileName, String remoteFileName)
===============================================
As i informed, this exception does not happen always. Could you please give probable reasons for this exception? Can it be problem at FTP server side? Please note Timeout property is not set at client. So is it a probability that Put method is having some timeout [internally] and it is throwing SocketException?

Any help will be highly appreciable. I need to find out where could be the issue? Its very urgent. Let me know if you need more info. I thought of to share wireshark logs but did not found how to attach it.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted April 11, 2014 10:13 AM

This is likely a network or server issue. Further assistance will require a subscription; please contact sales@dart.com for additional information.

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | General Questions Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX