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

Author Message
[View user's profile]

Joined: 2016-09-13
Posts: 1
version of winscp EXE is
windows 7
I am using 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.

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
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?

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License