Re: System.Exception: Server returned an error (General questions)
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:
- System.Exception: Server returned an error - Yuval, 2005-05-03, 16:03
- Re: System.Exception: Server returned an error - wodSupport, 2005-05-03, 16:10
- Re: System.Exception: Server returned an error - sbowers, 2005-06-30, 23:19
- Re: System.Exception: Server returned an error - wodSupport, 2005-06-30, 23:47
- Re: System.Exception: Server returned an error - sbowers, 2005-06-30, 23:19
- Re: System.Exception: Server returned an error - wodSupport, 2005-05-03, 16:10