Topic "Move files from one folder to different folder at remote location getting SessionRemoteException"

Author Message
Nagdeep
[View user's profile]

Joined: 2016-09-13
Posts: 1
version of winscp EXE is 5.5.4.44.33
windows 7
sftp
Hi,
I am using Winscp.net dll in my .net code for moving files from one location to another location using Session.MoveFile(String sourcePath, String targetPath) method.
I am getting below error

- Error moving file '/Winscpdemo/IN/file1.xml' to '/Winscpdemo_Archive/file1.xml'.
WinSCP.SessionRemoteException: Error moving file '/Winscpdemo/IN/file1.xml' to '/Winscpdemo_Archive/file1.xml'. ---> WinSCP.SessionRemoteException: General failure (server should provide error description).
Error code: 4
Error message from server (en): Internal server error.
--- End of inner exception stack trace ---
at WinSCP.SessionLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.CustomLogReader.WaitForNonEmptyElementAndCreateLogReader(String localName, LogReadFlags flags)
at WinSCP.Session.MoveFile(String sourcePath, String targetPath)

Please help me in sorting this out, thanks in advance.

Thanks,
Nag
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
We can hardly help you with server's "Internal error".

Can you move the file in WinSCP GUI or in any other SFTP client?
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