transferOptions.ResumeSupport.State = TransferResumeSupportState.Off;
transferOptions.ResumeSupport.State = TransferResumeSupportState.Off;
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
transferOptions.ResumeSupport.State = TransferResumeSupportState.Off;
transfer.ResumeSupport.State = TransferResumeSupportState.Off
Dim sftp As New SessionOptions
Dim session As New Session
Dim transfer As New TransferOptions
Dim result As TransferOperationResult
With sftp
.Protocol = Protocol.Sftp
.HostName = "***"
.UserName = "***"
.Password = "***"
.SshHostKeyFingerprint = "***"
End With
session.Open(sftp)
transfer.ResumeSupport = TransferResumeSupport.Off [property is readonly]
transfer.TransferMode = TransferMode.Binary
result = session.PutFiles("C:\xx.csv", "xx.csv", False, transfer)
result.Check()
TransferOptions.ResumeSupport = TransferResumeSupport.Off
SessionOptions sessionOptions = new SessionOptions()
{
Protocol = Protocol.Sftp,
HostName = ConfigurationManager.AppSettings["sftp.host"],
UserName = ConfigurationManager.AppSettings["sftp.userName"],
Password = ConfigurationManager.AppSettings["sftp.password"],
SshHostKeyFingerprint = ConfigurationManager.AppSettings["sftp.SshHostKeyFingerprint"],
};
sessionOptions.AddRawSettings("ResumeSupport", "2");
sessionOptions.AddRawSettings("IgnorePermErrors", "1");
sessionOptions.AddRawSettings("PreserveTime", "0");
Let me know, if this issue is fixed already with 5.1.3 version ?
With sessionOptions
.Protocol = Protocol.Sftp
.HostName = FTPAddr
.UserName = FtpUserId
.Password = FTPPassword
.PortNumber = FTPPort
.SshHostKeyFingerprint = sshHostKey
.AddRawSettings("ResumeSupport", "2")
.AddRawSettings("IgnorePermErrors", "1")
.AddRawSettings("PreserveTime", "0")
End With
sessionOptions.AddRawSettings("ResumeSupport", "2")
sessionOptions.AddRawSettings("IgnorePermErrors", "1")
sessionOptions.AddRawSettings("PreserveTime", "0")