EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How do I debug connection problems for sftp on windows rt

Posted: 09/02/2014 00:49:25
by Lyall Ward (Basic support level)
Joined: 09/02/2014
Posts: 2


I'm attempting to use the SimpleSftpDemo sample windows rt application to connect to a Serv-U sftp server. I'm able to connect to the server using the ip/username and password in SmartFtp, but when connection via the demo app I get a connection error.

The message I receive is Connection failed (error code is -2147024891)
at SBSimpleSftp.TElSimpleSFTPClient.Open()
at SBSimpleSftp.Async.TElSimpleSFTPClient_AsyncExtensions.<>c__DisplayClass67.<OpenAsync>b__66()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at SimpleSftpDemo_WinRT.MainPage.<Connect>d__e.MoveNext()

I get the same exception if I just try to connect to localhost (where there is no server running) just with a slightly different error code. When trying to connect to the server I get the same behaviour if I use the ip address or hostname in the connection properties.

I'm not seeing any sign of activity on the server at all and am unable to find anyway to determine what might be going wrong.

How else can I determine what is failing?

Thank you.

Posted: 09/02/2014 00:59:35
by Eugene Mayevski (Team)

Thank you for contacting us.

The error is basicly "Access Denied" (80070005). That corresponds to the symptoms - the socket connection is not even initiated.

What you can start with is create an instance of TElSocket class, set its Address and Port properties and call Connect. Let's see if the socket connects at all.

Sincerely yours
Eugene Mayevski
Posted: 09/02/2014 20:17:31
by Lyall Ward (Basic support level)
Joined: 09/02/2014
Posts: 2


Thank you for the reply. Based on your response I was able to determine that despite the sftp connection not having any requirement on active directory as I am on an active directory based network I need to allow the 'intranet' permissions for the app as well as internet.

I am now successfully connecting to the server and fetching file listings etc.

Posted: 09/03/2014 02:08:44
by Eugene Mayevski (Team)

Thank you very much for posting the outcome - it will surely help other people with similar problems.

Sincerely yours
Eugene Mayevski



Topic viewed 607 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!