Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Move files from one folder to different folder at remote location getting SessionRemoteException

We can hardly help you with server's "Internal error".

Can you move the file in WinSCP GUI or in any other SFTP client?
Nagdeep

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

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