port from vb6 to c# (wodFtpDLX / wodFtpDLX.NET)
Dear all,
I'm quite new to c# and I'm trying to port a very old application from vb6 to c#. Off course all new code is build from the ground up (based on the vb-code).
I'm getting stuck with a piece of code to connect a certificate to the sftp-object.
Some code:
if (moFTP.State == wodFtpDLXComLib.StatesEnum.Connected) { moFTP.Disconnect(); }
moFTP.Hostname = Bron.IpAdres;
moFTP.ProxyHostname = "";
moFTP.ProxyPort = 1080;
moFTP.ProxyType = 0;
moFTP.Timeout = 600;
moFTP.Passive = false;
moFTP.TransferMode = 0;
moFTP.Compression = 6;
moFTP.Blocking = true;
moFTP.Login = "";
moFTP.Password = "";
WODCERTMNGLib.Certificate certificaat = new WODCERTMNGLib.Certificate();
certificaat.LoadKey(certificatenDirectory + Bron.Certificaat);
moFTP.Certificate = certificaat; <<----- ERROR!!
Error:
Cannot implicity convert type WODCERTMNGLib.Certificate to WodFtpDlxComLib.ICertificate.....
What do I have to do?
Thanks in advance!
Rien.
Complete thread:
- port from vb6 to c# - Rien van Ham, 2015-12-10, 19:30
- port from vb6 to c# - Jasmine, 2015-12-10, 19:39
- port from vb6 to c# - Rien van Ham, 2015-12-11, 09:00
- port from vb6 to c# - Jasmine, 2015-12-10, 19:39