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

Advertisement

Nagdeep
Joined:
Posts:
1

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

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

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?

Reply with quote

Advertisement

You can post new topics in this forum