Topic "Cannot upload file on SFTP - Error code 2"

Author Message
Maya

Guest


Hi,

I like this DLL very much and I am planning to use it in my new project Smile
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.

[/img]
LOG.log (982.21 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Can you upload the file using a GUI?
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License