jmarmash
Two questions...
1. I have been evaluating the C# SDK for connecting to a remote server for the past couple of weeks. Today, I can connect with my client application (which says I have 6 days left during the trial). When I try connecting to the remote server with the exact same information via the SDK I get a ftpErrorLicense error. There doesn't appear to be any meaningful information in the logs. Does the SDK trial expire before the client trial? That is the only thing that I can think of that would cause this behavior.
this is the code that *used* to work
[codebox]SFTPConnection _sftp = new SFTPConnection();
_sftp.Host = _config.SFTPHost;
_sftp.Port = _config.SFTPPort;
_sftp.Username = _config.SFTPUsername;
_sftp.Password = _config.SFTPPassword;
sfFTPLib.KeyManager keyManager = new KeyManager();
_sftp.PrivateKey = keyManager.LoadFile(_config.PrivateKeyLocation, "");
// set CLNT name
_sftp.Client = _config.SFTPClientName;
// log everything
_sftp.LogFile = _config.SFTPLogFileLocation;
_sftp.Proxy.Type = enumProxyType.ftpProxyTypeNone;
// connect to host
sfFTPLib.enumError err = _sftp.Connect();[/codebox]
this is the only line in the log file
[codebox][20080717 16:05:15] SmartFTP FTP Library v1.5.13.30[/codebox]
2. I notice that using the SFTPConnection object that there isn't a "ChangeDirectory" method along with a few other differences compared to the FTPConnection class. Is there another method for iterating through the remote directories for SFTP connections?
Please advise.
Jeff
1. I have been evaluating the C# SDK for connecting to a remote server for the past couple of weeks. Today, I can connect with my client application (which says I have 6 days left during the trial). When I try connecting to the remote server with the exact same information via the SDK I get a ftpErrorLicense error. There doesn't appear to be any meaningful information in the logs. Does the SDK trial expire before the client trial? That is the only thing that I can think of that would cause this behavior.
this is the code that *used* to work
[codebox]SFTPConnection _sftp = new SFTPConnection();
_sftp.Host = _config.SFTPHost;
_sftp.Port = _config.SFTPPort;
_sftp.Username = _config.SFTPUsername;
_sftp.Password = _config.SFTPPassword;
sfFTPLib.KeyManager keyManager = new KeyManager();
_sftp.PrivateKey = keyManager.LoadFile(_config.PrivateKeyLocation, "");
// set CLNT name
_sftp.Client = _config.SFTPClientName;
// log everything
_sftp.LogFile = _config.SFTPLogFileLocation;
_sftp.Proxy.Type = enumProxyType.ftpProxyTypeNone;
// connect to host
sfFTPLib.enumError err = _sftp.Connect();[/codebox]
this is the only line in the log file
[codebox][20080717 16:05:15] SmartFTP FTP Library v1.5.13.30[/codebox]
2. I notice that using the SFTPConnection object that there isn't a "ChangeDirectory" method along with a few other differences compared to the FTPConnection class. Is there another method for iterating through the remote directories for SFTP connections?
Please advise.
Jeff