0 votes
by (140 points)

One of our .Net Windows service is using Rebex SFTP .Net Library to download and upload from/to an SFTP server.

It was working fine till 20th Dec 2017 without any issue. After 20th Dec, most of the time we are getting Not connected to the Server exception while connecting to the server. Sometimes the connection will get established and will process the file.
At the same (when we are getting the exception), it is able to connect to the SFTP server using the WINSCP.exe from the same server.

Please help us to resolve or to get the root cause.

Applies to: Rebex SFTP

1 Answer

0 votes
by (148k points)

The "Not connected to the server" exception indicates that you are trying to call a method of Sftp objects even though the Connect method failed (or was not called at all). To determine the cause of the issue, please look into the exception thrown by the Connect method instead.

However, the easiest way to determine what is going on is using Sftp object's LogWriter property to create a communication log. Give this a try and post the log here if possible (or mail it to support@rebex.net).

...