Login  
Search All Forums
Dart Home | PowerTCP SFTP & SSH for .NET | Custom Development Reply | PowerTCP SFTP & SSH for .NET Topics | Forums   
AuthorForum: PowerTCP SFTP & SSH for .NET
Topic: Sftp connect issue with DART SFTP library while making SFTP connection to proxy
cumulus
ketan.bhagwat@cumulus-systems.com

From: Campbell, CA 95008, CA USA
Posts: 2
Member Since: 09/15/22
posted September 15, 2022 2:51 AM

Hello Dart-support,

We are facing sftp connect issue with DART SFTP library while making SFTP connection to proxy server. However we are not able to get exact cause of below error as exception is comming from DART library and we are not able to get that.

DEBUG,An exception was thrown before the operation could be completed. See inner exception. Stacktrace:  at Dart.Ssh.SshConnection.Connect(Int32 timeout)

Below are DART libraries details that we are using,
Dart.Ssh.dll   -> version 4.10.3.1
Dart.Ftp.dll   -> version 4.7.1.0
Dart.PowerTCP.zip.dll -> version 2.0.2.3

.NET framework version -> 4.7


HOST machine details
OS : OS Name Microsoft Windows Server 2019 Standard Version 10.0.17763 Build 17763
System Type : x64-based PC
Processor : Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz, 2301 Mhz, 10 Core(s), 20 Logical Processor(s)
Processor : Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz, 2301 Mhz, 10 Core(s), 20 Logical Processor(s)


Pseudo code :
{
Sftp sftpconn = new Sftp();
sftpconn.Connection.RemoteEndPoint.Port = port;  //sftpPort=22
sftpconn.Connection.RemoteEndPoint.HostNameOrAddress = server;
conn_type = 2;
try
{
ProxyLogin = new HttpProxyData(_proxyServerName, Convert.ToInt16(_proxyPort), proxyUserName, proxyPassword); //proxyport is 3128
}
catch
{
ProxyLogin = new HttpProxyData(_proxyServerName, 80, proxyUserName, proxyPassword);
}

sftpconn.Connection.Proxy = ProxyLogin;

sftpconn.Connect();
sftpconn.Authenticate(username, password);
ftpObject = new FTPWrapper(sftpconn);
}

Please let us know how to troubleshoot this issue also please let us know how to get additional logs from Dart libraries.
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 448
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted September 15, 2022 2:24 PM

Thank you for your post. An reply has been sent. Please let me know if you do not receive it and I will be happy to resend.

Best,
Jamie

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

cumulus
ketan.bhagwat@cumulus-systems.com

From: Campbell, CA 95008, CA USA
Posts: 2
Member Since: 09/15/22
posted September 20, 2022 12:23 AM

Hello Jamie,

As requested please find below inner exception logs for error

9/19/2022 9:36:52 AM,421272,ERROR,OuterException :  at Dart.Ssh.SshConnection.Connect(Int32 timeout)
  at AutomateLib.Runner.OpenFTPConnection(Boolean calledByWatchdog, String ftpType, String server, Int32 port, String username, String password, String remoteDir, String instanceName, String _proxyType, String _proxyServerName, String _proxyPort, String _proxyUserName, String _proxyPassword)
9/19/2022 9:36:52 AM,421272,ERROR,InnerException :  at Dart.Ssh.Connection.(ServerHostKeyVerifier , Int32 )
  at Dart.Ssh.SshConnection.(Object )

Please let us know if you need any further details.

Thanks,
Reply | PowerTCP SFTP & SSH for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX