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
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