Re: System.Exception: Server returned an error - WeOnlyDo Discussion board

Re: System.Exception: Server returned an error (General questions)

by sbowers, Thursday, June 30, 2005, 23:19 (7084 days ago) @ wodSupport

I am also having this problem and I am always using the full path for the remote file in my GetFile(<remotepath>, <localpath>) call. I know the file is being transferred correctly because it shows up in my local path. I've transferred binary files (like spreadsheets) and they open correctly after the get.

I just recently received an email from Kreso in technical support and he is leaning towards a bug with the wodSFTP against the SFTP server that I'm using. My server is WAC Manager 1.4 from Foxit Software. What are you using?

As a workaround, when I catch the exception thrown from GetFile (this only occurs when BlockingMode = TRUE), I interrogate the error code returned from GetServerErrorCode(). If it is > 1, it is still an error, otherwise, I assume success. An error code of 0 means OK and an error code of 1 means End of File .

Long term, I don't like it, but I'm awaiting a response from tech support.


Complete thread: