Jump to content


Issue Information

  • #000087

  • 0 - None Assigned

  • Unfiled

  • -

  • -

Issue Confirmations

  • Yes (0)No (0)
Photo

Warning reply in server to server Ftp

Posted by eng.mohemed on 24 July 2010 - 12:31 PM

Dears
I try to transfer files from Remote FTP Folder to another but I faced problem in FileFXP function
Always return ftpErrorWrongReply error result so, you can detect what the problem in this function
and why in localy ftp transfer working successfully but in remote ftp not working

this my code :
// Load License Key
if(initLicenceKey())
{
// Create an instance of the Ftp class.
FTPConnectionMTA ftpSource = new FTPConnectionMTA();
FTPConnectionMTA ftpDest = new FTPConnectionMTA();

FTPFXP fxp = new FTPFXP();


ftpSource.LogFile = @"c:\source.log";

ftpSource.Host = "192.168.1.45";
ftpSource.Port = 21;
ftpSource.Username = "administrator";
ftpSource.Password = "xxxx";
ftpSource.Passive = true;
ftpSource.Timeout = 10;
ftpSource.LISTOption = 6;
ftpSource.PassiveForceIP = false;
ftpSource.DataProtection = enumDataProtection.ftpDataProtectionClear;
ftpSource.Protocol = enumProtocol.ftpProtocolNormal;

ftpDest.LogFile = @"c:\dest.log";
ftpDest.Host = "192.168.1.45";
ftpDest.Port = 21;
ftpDest.Username = "administrator";
ftpDest.Password = "xxxx";
ftpDest.Passive = false;
ftpDest.Timeout = 10;
ftpDest.LISTOption = 6;
ftpDest.PassiveForceIP = false;
ftpDest.DataProtection = enumDataProtection.ftpDataProtectionClear;
ftpDest.Protocol = enumProtocol.ftpProtocolNormal;


sfFTPLib.enumError errSource = ftpSource.Connect();

if (errSource == sfFTPLib.enumError.ftpErrorSuccess)
{

sfFTPLib.enumError errDest = ftpDest.Connect();

if (errDest == sfFTPLib.enumError.ftpErrorSuccess)
{

fxp.Source = ftpSource;
fxp.Destination = ftpDest;

enumError res = fxp.FXPFile(txtsource.Text, txtDest.Text, 0, 0);
// here the result is ftpErrorWrongReply.
}

}
}
I whis to reply faster you can .

regards,

Please renew the maintenanc of your key for technical support. Thank you.

Updating status to: Working as Intended





0 user(s) are reading this issue

0 members, 0 guests, 0 anonymous users