WinSCP Uploads file successfully to SFTP but gives error-2

Advertisement

Anagha
Joined:
Posts:
3
Location:
Pune, India

WinSCP Uploads file successfully to SFTP but gives error-2

Hi,

WinSCP Uploads file successfully to SFTP but gives back error code 2
We are getting this problem for one client when we try to upload zip file of size 47 MB to SFTP through WinSCP.
We are trying to upload the file at root of SFTP. "/"
WinSCP version 5.5.2
Attaching a WinSCP log here. SFTP url and client name is changed in the log file.
Please help me to resolve this problem.
Thank you.
Description: WinSCP Uploads file successfully to SFTP but gives error-2

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

Re: WinSCP Uploads file successfully to SFTP but gives error-2

It looks like a server-side problem to me. Are you able to upload the file using any other SFTP client?

Reply with quote

Anagha
Joined:
Posts:
3
Location:
Pune, India

Re: WinSCP Uploads file successfully to SFTP but gives error-2

Thank you for the reply. I can check this on wednesday/thursday when the client load comes. I will reply back to you on the same day.

Reply with quote

Anagha
Joined:
Posts:
3
Location:
Pune, India

We checked uploading it through WinSCP client (5.5.2) directly not through .NET code; this time the file uploaded successfully on Root without any error message. That means it is not a server problem.
But same WinSCPNet.dll through following .NET code throws error back with error code -2
-------------------------------------------------------------------
var transferOptions = new TransferOptions();
transferOptions.TransferMode = TransferMode.Binary;
FilePermissions fp = new FilePermissions();
session.PutFiles(localPath: SourcePath, remotePath: DestinationPath, remove: false, options: transferOptions);

-------------------------------------------------------------------
Please help.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

Anagha wrote:

We checked uploading it through WinSCP client (5.5.2) directly not through .NET code; this time the file uploaded successfully on Root without any error message. That means it is not a server problem.
Please attach a session log file showing that.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum