Re: Version mis-match
You should have a compatible (5.1.7) copy of the
See https://winscp.net/eng/docs/library_install#installing
winscp.exe
along with the winscp.dll
with all your programs. You should not rely on the installed version of WinSCP.
See https://winscp.net/eng/docs/library_install#installing