Hi kasi5a,
Error 1: "Timeout exceeded while waiting for file replication":
does not come from Rebex components, so whether it comes from your code or from somewhere else it is up to you to figure out why the error occured and what it means.
Error 2: "The process cannot access the file 'D:\..\Logs\EFT_20150713_092417.txt' because it is being used by another process.":
Actually the error could have been thrown by Sftp.PutFile method. However, it comes from .NET itself. This can be reproduced easily if you try to upload a file that is "locked". However the error message is misleading - actually even the same process (the program) could cause the exception to be thrown. Please see this code that reproduces the error:
// create a text file
StreamWriter writer = File.CreateText("sample.txt");
writer.WriteLine("This is a sample file.");
// if the file is not closed (or finalized by the garbage collector),
// the following code will throw the "The process cannot access the file" exception
// connect to the server and upload the file
var sftp = new Sftp();
sftp.Connect("server");
sftp.Login(username, password);
sftp.PutFile("sample.txt", "sample.txt");
sftp.Disconnect();
To overcome the error please make sure that our component will be able to read from the file. In my code above it means closing the StreamWriter by calling writer.Close(); before performing the Sftp.PutFile method
Error 3: "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." is not thrown by the PutFile method and it has already been discussed at
http://forum.rebex.net/1848/connection-connected-properly-established-connection-connected