Re: Could not load file or assembly - WeOnlyDo Discussion board

Re: Could not load file or assembly (General questions)

by insrod, Wednesday, November 23, 2011, 15:28 (4530 days ago) @ woddrazen

Hi Drazen,

We are using Public Authentication but using Private Key. And, can you please explain how do we distribute the dlls?
What are the dependent files and assemblies for keymanager dll.

Below is our code:
[code]_sftp.Authentication = WeOnlyDo.Client.SFTP.Authentications.PublicKey;
_sftp.Encryption = WeOnlyDo.Client.SFTP.Encryptions.Auto;
_sftp.TransferMode = WeOnlyDo.Client.SFTP.TransferModes.Binary;
_sftp.Blocking = true;
_sftp.Resume = true;
Login = GetKeyValue( Login , Config, web);
_sftp.Login = Login;
Hostname = GetKeyValue( Hostname , Config, web);
_sftp.Hostname = Hostname;
Port = GetKeyValue( Port , Config, web);
_sftp.Port = Convert.ToInt32(Port);

// Set Private Key settings.
KeyFile = GetKeyValue( KeyFile , Config, web);
_KeyFile = KeyFile;
WeOnlyDo.Security.Cryptography.KeyManager keyManager = new WeOnlyDo.Security.Cryptography.KeyManager();
keyManager.Load(_KeyFile);
_sftp.PrivateKey = keyManager.PrivateKey(WeOnlyDo.Security.Cryptography.SSHKeyTypes.RSAKey);
[/code]


Regards,
Sid


Complete thread: