Timeout due to server inactivity when trying to us - WeOnlyDo Discussion board

Timeout due to server inactivity when trying to us (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Anil, Wednesday, June 24, 2009, 18:38 (5418 days ago)

With following code when i am using GetFile (by giving file name),
it's working fine but when I am using the GetFiles(by giving directory name to copy whole directory) then it's giving exception as
Time out due to server inactivity
Please suggest.

dlx1 = New WeOnlyDo.Client.FtpDLX
dlx1.Protocol = Protocols.SFTP
dlx1.Blocking = True
dlx1.Hostname = host name
dlx1.Login = login
dlx1.Password = pwd
dlx1.Port = 22
dlx1.LicenseKey =
dlx1.Connect()
If dlx1.State = States.Connected Then
dlx1.GetFiles(objFTPdetails.GetDestinationFilePath, objFTPdetails.GetSourceFilePath, 5)
dlx1.Disconnect()
End If

Re: Timeout due to server inactivity when trying t

by woddrazen, Wednesday, June 24, 2009, 18:42 (5418 days ago) @ Anil

Hi Anil,


Can you show us maybe direct value you are using in GetFiles Method line in your code?

Also which version of wodFtpDLX.NET you are using? You can check version using wodFtopDLX.NET Version Property.


Regards,
Drazen

Re: Timeout due to server inactivity when trying t

by prabhat, Wednesday, June 24, 2009, 19:08 (5418 days ago) @ woddrazen

Hi Anil,


Can you show us maybe direct value you are using in GetFiles Method line in your code?

Also which version of wodFtpDLX.NET you are using? You can check version using wodFtopDLX.NET Version Property.


Regards,
Drazen


Hi Below is the possible values we are passing

dlx1.GetFiles( \10.3.1.89\FTPL\ , \FTPGET\ , 5)

Thanks
Prabhat

Re: Timeout due to server inactivity when trying t

by woddrazen, Wednesday, June 24, 2009, 19:20 (5418 days ago) @ prabhat

Prabhat,


Can you please change your GetFiles line to this:[code]dlx1.GetFiles( \\10.3.1.89\FTPL , /FTPGET , 5) [/code]
If you are using network path for local path please make sure that is accessible without authentication.


Drazen

Re: Timeout due to server inactivity when trying t

by prabhat, Wednesday, June 24, 2009, 19:30 (5418 days ago) @ woddrazen

Hi Anil,


Can you show us maybe direct value you are using in GetFiles Method line in your code?

Also which version of wodFtpDLX.NET you are using? You can check version using wodFtopDLX.NET Version Property.


Regards,
Drazen


Hi Below is the possible values we are passing

dlx1.GetFiles( \10.3.1.89\FTPL\ , \FTPGET\ , 5)

Thanks
Prabhat


Some time it is copied the file to the destination location but most of the time it is giving timeout due to inactivity

Re: Timeout due to server inactivity when trying t

by prabhat, Wednesday, June 24, 2009, 19:34 (5418 days ago) @ prabhat

Hi Anil,


Can you show us maybe direct value you are using in GetFiles Method line in your code?

Also which version of wodFtpDLX.NET you are using? You can check version using wodFtopDLX.NET Version Property.


Regards,
Drazen


Hi Below is the possible values we are passing

dlx1.GetFiles( \10.3.1.89\FTPL\ , \FTPGET\ , 5)

Thanks
Prabhat


Some time it is copied the file to the destination location but most of the time it is giving timeout due to inactivity


sorry i was used this

dlx1.GetFiles( \\10.3.1.89\FTPL\ , /FTPGET/ , 5)
Some time it is copied the file to the destination location but most of the time it is giving timeout due to inactivity [/

and local path is accessible without authentication

Re: Timeout due to server inactivity when trying t

by woddrazen, Wednesday, June 24, 2009, 19:36 (5418 days ago) @ prabhat

Prabhat,


What happens if you use local folder for local path in GetFiles Method?


Drazen

Re: Timeout due to server inactivity when trying t

by prabhat, Wednesday, June 24, 2009, 19:44 (5418 days ago) @ woddrazen

Prabhat,


What happens if you use local folder for local path in GetFiles Method?


Drazen


if i am using this

dlx1.GetFiles( C:\FTPL , /FTPGET/ , 5)

then some time we get the files but most of the time this method is giving Timeout occurred due to inactivity problem. Means 90 this error is coming suppose i attempt 10 times then 2 times it coped the file but 8 time it failed with timeout inactivity


if i am using the another method GetFile instead of GetFiles it is working fine. But we have to use GetFiles method because we dont know what is the file name at server as GetFile require file name.

Thanks

Re: Timeout due to server inactivity when trying t

by woddrazen, Wednesday, June 24, 2009, 19:48 (5418 days ago) @ prabhat

Prabhat,


Which version of wodFtpDLX.NET you are using?

Also please add this code inside LoopError Event and try it again [code]Args.Error = Nothing[/code]
Drazen

Re: Timeout due to server inactivity when trying t

by prabhat, Wednesday, June 24, 2009, 19:56 (5418 days ago) @ woddrazen

Prabhat,


Which version of wodFtpDLX.NET you are using?

Also please add this code inside LoopError Event and try it again [code]Args.Error = Nothing[/code]
Drazen


Hi Drazen,

i am using this version: 1.4.1.127.


thanks


Re: Timeout due to server inactivity when trying t

by prabhat, Wednesday, June 24, 2009, 20:17 (5418 days ago) @ prabhat

Prabhat,


Which version of wodFtpDLX.NET you are using?

Also please add this code inside LoopError Event and try it again [code]Args.Error = Nothing[/code]
Drazen


Hi Drazen,

i am using this version: 1.4.1.127. Please suggest what we do.


thanks

Re: Timeout due to server inactivity when trying t

by prabhat, Wednesday, June 24, 2009, 20:28 (5418 days ago) @ prabhat

Prabhat,


Which version of wodFtpDLX.NET you are using?

Also please add this code inside LoopError Event and try it again [code]Args.Error = Nothing[/code]
Drazen


Hi Drazen,

i am using this version: 1.4.1.127. Please suggest what we do.


Can u please give any solution ASAP.


thanks

Re: Timeout due to server inactivity when trying t

by woddrazen, Wednesday, June 24, 2009, 20:36 (5418 days ago) @ prabhat

Prabhat,


Please add this code to LoopError Event:

Args.Error = Nothing

Also please upgrade to latest version 1.4.5.148 version of wodFtpDLX.NET and try it again.


Drazen

Re: Timeout due to server inactivity when trying t

by prabhat, Thursday, June 25, 2009, 12:41 (5417 days ago) @ woddrazen

Prabhat,


Please add this code to LoopError Event:

Args.Error = Nothing

Also please upgrade to latest version 1.4.5.148 version of wodFtpDLX.NET and try it again.


Drazen


Hi,

I uased this dlx1.Passive = True line and now it is working fine.


Thanks