Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: Cannot upload file on SFTP - Error code 2

Can you upload the file using a GUI?

Cannot upload file on SFTP - Error code 2


I like this DLL very much and I am planning to use it in my new project :)
The issue that I have is related to file upload on sftp server. I am using c# programming language.
I created a prototype application and I successfuly downloaded files from SFTP using method GetFiles and syncronized folders using method SynchronizeDirectories.

Only method PutMethods is not working for me. I am getting error:
Cannot create remote file '/OpenCases/Export11.xml'. ---> WinSCP.SessionRemoteException: No such file or directory.
Error code: 2
Error message from server: No such file.
--- End of inner exception stack trace ---
at WinSCP.OperationResultBase.Check()
at TestSFTP_Connection.Form1.btnSync_Click(Object sender, EventArgs e) in .... <PATH>

I dont understand why I couldnot upload it - user has all rights on SFTP server.

I tested upload and download using WinSCP application - the same issue exist with file upload operation.

Please help, I would like to use this component in my new project.