West Wind Toolkit for .NET
wwsftp 'seek operation failed' after loftp.FtpGetFileEx(mfrom,mto)
Gravatar is a globally recognized avatar based on your email address. wwsftp 'seek operation failed' after loftp.FtpGetFileEx(mfrom,mto)
  Steve Yu
  All
  Oct 24, 2019 @ 10:07am

no problem connecting to host. no problem getting list of files loftp.FtpListFiles("/Outbox") but got the seek error with the loftp.ftpgetfileex(mfrom,mto) command mfrom="/Outbox/test2.txt" mto = "X:\bin\test2.txt" tried changing the mto to other folders with same error. was working using DOS psftp.exe script, want to get away from DOS shell. Usually the file in the /Outbox directory would go away right after the get command (as being happening via the DOS script) But when I got the seek error, the destionation file stays (confirmed by admin monitoring at the other end, saying no extraction efforts have been logged); on my end, I did receive the file, but it's empty with 0 byte. Need help. Steve Yu in Houston

Gravatar is a globally recognized avatar based on your email address. re: wwsftp 'seek operation failed' after loftp.FtpGetFileEx(mfrom,mto)
  Steve Yu
  Steve Yu
  Oct 24, 2019 @ 10:10am

I am using ?Version 6.17

? October 20th, 2017 Steve Yu

Gravatar is a globally recognized avatar based on your email address. re: wwsftp 'seek operation failed' after loftp.FtpGetFileEx(mfrom,mto)
  Steve Yu
  Steve Yu
  Oct 24, 2019 @ 12:54pm

Upon further testig, it now works with the high level get: o.FtpGetFile(lcFTPServer, lcFtpSource, lcLocalTarget, lnBinary, lcUsername, lcPassword)

Except I had to remove the lnBinary para from the list. was getting not able to connect with the lnBinary in place.

Not logical, but it works. I had other cases that were just the opposite. So I just have to try both in the future to see which one works. Steve Yu

Gravatar is a globally recognized avatar based on your email address. re: wwsftp 'seek operation failed' after loftp.FtpGetFileEx(mfrom,mto)
  Rick Strahl
  Steve Yu
  Nov 1, 2019 @ 01:29pm

I think this was fixed in later versions. If I recall this was fixed with a bug fix in the underlying .NET component that's handling the actual transaction.

I think it was you who reported this issue and we went through it then?

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: wwsftp 'seek operation failed' after loftp.FtpGetFileEx(mfrom,mto)
  Steve Yu
  Rick Strahl
  Nov 1, 2019 @ 02:40pm

Thanks for the reply, Rick. Can't remember if I posted this issue before. We are sticking with the high-level call for now, as long as it works. The wwsftp helps us a lot, allowing us to get off the Dos Shell which is causing problems as we moved to new Windows server 2016. Just came back from one week stay at Ridge Villa in Kapalua, lovely island living. Really envy anyone who can afford to live there, everything so expensive. Regards,

Steve Yu in Houston.

© 1996-2019