Licensing (General questions)
HI,
Just upgraded a project to the latest version of SSH.NET and in my code below its not recognizing the command for LicenseKey?
ssh1.LicenseKey = XXXX-XXXX-XXXX-XXXX ;
Error 4 'WeOnlyDo.Client.SSH' does not contain a definition for 'LicenseKey' and no extension method 'LicenseKey' accepting a first argument of type 'WeOnlyDo.Client.SSH' could be found (are you missing a using directive or an assembly reference?)
#region SSH Tunnel
WeOnlyDo.Client.SSH ssh1 = new WeOnlyDo.Client.SSH();
System.Collections.IDictionary envVars = Environment.GetEnvironmentVariables();
string endVLC = killall -q vlc ;
String hostname_value = ;
private void data(string streamPath)
{
System.Collections.IDictionary envVars = Environment.GetEnvironmentVariables();
foreach (System.Collections.DictionaryEntry envVar in envVars)
{
if (envVar.Key.ToString() == ThinConnectedFrom )
{
hostname_value = envVar.Value.ToString();
}
}
WeOnlyDo.Client.SSH ssh1 = new WeOnlyDo.Client.SSH();
ssh1.Hostname = hostname_value;
ssh1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSHAuto;
ssh1.Login = user ;
ssh1.Password = user ;
ssh1.Blocking = true;
ssh1.Command = streamPath;
try
{
ssh1.LicenseKey = XXXX-XXXX-XXXX-XXXX ;
ssh1.Connect();
String result = ssh1.Receive();
System.IO.File.WriteAllText( C:\Temp\TV.txt , result);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString());
}
}
#endregion
Complete thread:
- Licensing - schenkp, 2011-05-11, 16:15
- Re: Licensing - woddrazen, 2011-05-11, 16:18
- Re: Licensing - schenkp, 2011-05-11, 17:10
- Re: Licensing - woddrazen, 2011-05-11, 16:18