issue resolve
issue resolve by using generateurl code
thanks
thanks
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Session.SessionLogPath
. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.var sessionOptions = new SessionOptions
{
Protocol = Protocol.Ftp,
HostName = "ftp.hostname.com",
PortNumber = 21,
UserName = "ABC@ftp.hostname.com",
Password = "Test12"
};
try
{
using (var session = new Session())
{
session.Open(sessionOptions);
var transferOptions = new TransferOptions
{
TransferMode = TransferMode.Binary
};
var transferResult = session.GetFiles("/test-destination/*.*",@"C:\test\",
false, transferOptions);
transferResult.Check();
foreach (TransferEventArgs transfer in transferResult.Transfers)
{
Console.WriteLine("Uploaded file: " + transfer.FileName);
}
}
}
catch (Exception ex)
{
return false;
}