I tried to upgrade the Rebex package from 2018 R2.1 to 2019 R3 but found exception in the sftp connect function. The same code is working in the Rebex 2018 R2.1 release.
Below is the exception message :
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
at System.Threading.Timer..ctor(TimerCallback callback, Object state, TimeSpan dueTime, TimeSpan period)
at pfzo..ctor()
at pfzo.fodc()
at pfxn1.get_yamj()
at pfzo.focr(Action euk, Double eul)
at pfwx.hxkp(Action dzq, Action
1 dzr, Int32 dzs)
at Rebex.Net.ProxySocket.Connect(EndPoint remoteEP)
at Rebex.Net.ProxySocket.Connect(String serverName, Int32 serverPort)
at Rebex.Net.Sftp.umaw(String lu, Int32 lv, SshParameters lw, itbx lx)
at Rebex.Net.Sftp.umav(String lr, Int32 ls, SshParameters lt)
at Rebex.Net.Sftp.Connect(String serverName, Int32 serverPort)
I check the microsoft doc and below is the possible cause of the exception.
Exceptions
ArgumentOutOfRangeException
The dueTime or period parameter is negative and is not equal to Infinite.
The code is run under dot net compact framework 3.5.
Any help would be appreciated.
Thanks.