Topic "WinSCP Uploads file successfully to SFTP but gives error-2"

Author Message
Anagha
[View user's profile]

Joined: 2015-01-30
Posts: 3
Location: Pune, India
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.
WinSCP Issue for client xyz.log (10.14 KB) [Download]

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

Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
It looks like a server-side problem to me. Are you able to upload the file using any other SFTP client?
Anagha
[View user's profile]

Joined: 2015-01-30
Posts: 3
Location: Pune, India
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.
Anagha
[View user's profile]

Joined: 2015-01-30
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
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
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