System.Exception: Server returned an error (General questions)
I have a windows service (C#) which is periodically searching for files on a remote server – when it finds files that matched a certain naming convention it attempts to download the files.
When calling the GetFile method I get:
[code]
System.Exception: Server returned an error: End of file
at WeOnlyDo.Protocols.SFTP._GetFile()
at WeOnlyDo.Protocols.SFTP.GetFile(String LocalPath, String RemoteFile)
at WeOnlyDo.Client.SFTP.GetFile(String LocalPath, String RemoteFile)
[/code]
(I am able to connect to the server using WINSCP3 and download the files)
Any clue as to how to get around this issue?