Sysax Product Forums / Sysax FTP Automation / General Discussion / Error information
Posted:  13 Sep 2012 11:01
I'm using the FTPComponent in C#. How do I get error information?
I only seem to be able to get status information - in other words boolean fail/success. But if it fails is there no error information to give indication to the reason for failure?

_myObject.FTPConnect(9011);
if (_myObject.IsFTPSuccess)
   {...}
else
   {
      MessageBox.Show("Connect Failed");
   }

Would be nice to know was it an authentication failure, could the server not be reached, what went wrong.

Same holds for the other FTP operations - file uploads and downloads.

I'm sure this must be available and I'm just missing it. Can someone point me in the right direction.
Posted:  13 Sep 2012 20:23   Last Edited By: sysaxsupport
Have you tried enabling logging to a file by using SetLogFile? Does that give you additional error information?
__________________
-------------------------------------------------------
Secure FTP Server and FTP Script Automation Solutions
 

Copyright © 2021 Codeorigin, LLC - All Rights Reserved.
XML RSS 2.0 XML Atom 1.0