Hi Team,
when i copy the file from internal server to external server i am calling the Rebex.. and when moving the file my server connection getting disconnected, because of this the file is not moving to the external server and its skip the file. could you plz provide how to handle the reattempt process to move the file to external server...
here is my code.
if (string.IsNullOrEmpty(pwd))
{
rebexSftp.Login(sftpFileInfo.SftpLoginUser, privateKey);
}
else
{
rebexSftp.Login(sftpFileInfo.SftpLoginUser, pwd, privateKey);
}
/////////////////////////////////////
textWriter.WriteLine("Login successful");
/////////////////////////////////////
rebexSftp.PutFile(localfile, remotefile);
/////////////////////////////////////
textWriter.WriteLine("PutFile successful");
/////////////////////////////////////
rebexSftp.Disconnect();