We were able to do a successful test on local machine using FTP.
However, we are facing issues using SFTP on production. Please see details below. Please note that we have already supplied Ssh Host Key Fingerprint which is required for SFTP.
Application error details==============================
Process : ConnectToServerAndUploadFile : Message - Connection has been unexpectedly closed. Server sent command exit status 0. [StackTrace - at WinSCP.SessionLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.SessionElementLogReader.Read(LogReadFlags flags)
at WinSCP.CustomLogReader.TryWaitForNonEmptyElement(String localName, LogReadFlags flags)
at WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags)
at WinSCP.Session.Open(SessionOptions sessionOptions)
at EBTAAmexUpload.Process.ConnectToServerAndUploadFile(String localPath, String winScpExeWithPath, String sessionLogPath)]
Please see attached SessionLog20170314.txt - WinSCP session log file of relevant test - for your reference.
Thanks & Regards.
OK, so your server runs on Windows. That's why the error message looked like local, while it was actually remote. So my advice above were indeed wrong.
The actual problem is that you probably miss a slash at the end of the target path.
FTPFolder should be
Thanks a lot.