Hi,
I am getting NullReferenceException while connecting to SFTP server. This is an intermittent error.
Below is stack trace
System.NullReferenceException: Object reference not set to an instance of an object. at swqv.vhtl(EndPoint azc)
at Rebex.Net.ProxySocket.Connect(EndPoint remoteEP)
at Rebex.Net.Sftp.fucx(String lz, Int32 ma, SshParameters mb, fflp mc)
at Rebex.Net.Sftp.fucw(String lw, Int32 lx, SshParameters ly)
at Rebex.Net.FileTransferClient.Connect(String serverName, Int32 serverPort, FileTransferMode transferMode)
and
System.NullReferenceException: Object reference not set to an instance of an object. at swqt.kiwp(IPEndPoint jt)
at swqv.vhtl(EndPoint azc)
at Rebex.Net.ProxySocket.Connect(EndPoint remoteEP)
at Rebex.Net.Sftp.fucx(String lz, Int32 ma, SshParameters mb, fflp mc)
at Rebex.Net.Sftp.fucw(String lw, Int32 lx, SshParameters ly)
at Rebex.Net.FileTransferClient.Connect(String serverName, Int32 serverPort, FileTransferMode transferMode)
I am sure FileTransferClient object is not null as I am setting a property on this object before calling connect and it does not throw exception from there.
What is the reason for this?