sftp Connect exception (netcf-3.5) after upgrade to 2019 R3

0 votes
asked Jul 18, 2019 by Stony Kong (210 points)

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, Action1 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.

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.


Applies to: Rebex SFTP
commented Jul 18, 2019 by Lukas Paluzga (970 points)
Hi Stony Kong,

Which OS is the program run on?

Kind Regards

Lukas Paluzga

1 Answer

0 votes
answered Aug 22, 2019 by Lukas Pokorny (128,250 points)

This appears to be caused by a bug that only affects Rebex components on .NET Compact Framework. It will be fixed in Rebex SFTP 2019 R3.2. A hotfix is available upon request.

commented Aug 23, 2019 by Stony Kong (210 points)
Thanks Lukas and we looking forward to the 2019 R3.2 release.

By the way, we are using WinCE6.0 OS.
commented Dec 5, 2019 by Lukas Pokorny (128,250 points)
This has been fixed in 2019 R3.3: https://www.rebex.net/total-pack/history.aspx#2019R3.3