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
Re: Licensing
Hi,
Most probably you are using DEMO version of a component. DEMO version don't have LicenseKey Property.
Please remove from your system wodSSH.NET and request latest licensed version here:
http://www.weonlydo.com/index.asp?update=1
This is automated process. Make sure you use same email address that is registered with our system, one you used when you have purchased the product.
Let us know how it goes.
Regards,
Drazen
Re: Licensing
It works now thanks :)