Normal
I'm trying to connect and access the tv-server remotely using this simple piece of code:[code]try { String provider; String connectionString; RemoteControl.Instance.GetDatabaseConnectionString(out connectionString, out provider); ProviderFactory.SetDefaultProviderConnectionString(connectionString); } catch (Exception ex) { MessageBox.Show("Failed to connect to host.\r\n\r\n" + ex.Message); return; } IList channels = Channel.ListAll(); for (int i = 0; i < channels.Count; ++i) { comboBoxChannels.Items.Add(channels[i]); }[/code]But it throws an error, any ideas what I might have missed?
I'm trying to connect and access the tv-server remotely using this simple piece of code:
[code]
try
{
String provider;
String connectionString;
RemoteControl.Instance.GetDatabaseConnectionString(out connectionString, out provider);
ProviderFactory.SetDefaultProviderConnectionString(connectionString);
}
catch (Exception ex)
MessageBox.Show("Failed to connect to host.\r\n\r\n" + ex.Message);
return;
IList channels = Channel.ListAll();
for (int i = 0; i < channels.Count; ++i)
comboBoxChannels.Items.Add(channels[i]);
[/code]
But it throws an error, any ideas what I might have missed?