0 votes
by (230 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.

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.

Applies to: Rebex SFTP
by (1.9k points)
Hi Stony Kong,

Which OS is the program run on?

Thanks
Kind Regards

Lukas Paluzga

1 Answer

0 votes
by (144k 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.

by (230 points)
Thanks Lukas and we looking forward to the 2019 R3.2 release.

By the way, we are using WinCE6.0 OS.
by (144k points)
...