| |||||||
| General Talk Talk about the MediaPortal TV-Server |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) | |
| Portal Member | 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]);
}
Quote:
__________________ My HTPC: http://minhembio.com/dhanjel/37468/ | |
| | |
| | #2 (permalink) |
| Portal Developer Join Date: Oct 2006 Age: 32
Posts: 1,318
Thanks: 25
Thanked 200 Times in 107 Posts
Country: | It depends where you put your gentle.config file. It seems like your prog can't find it.
__________________ ACCENT HT-100 | 2x16 VFD | ADM Athlon 64 3500+ | Win XP SP2 | SkyStar 2 DVB-S PCI | TT connect S2-3600 |
| | |
| | #3 (permalink) |
| Portal Member | What is that file and what should it contain? It said nothing about that in the example on the wiki
__________________ My HTPC: http://minhembio.com/dhanjel/37468/ |
| | |
![]() |
| Bookmarks |
| Tags |
| connect, exception, net, thrown, tvserver |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mediaportal closed with .net Exception | SCHRANK | 0.2.3.0 RC1 and SVN Builds | 11 | 2008-01-06 19:46 |
| Exception :unable to connect b2c2->_infTeeMain | cleao | General Support | 4 | 2007-05-09 11:22 |
| Exception :unable to connect b2c2->_infTeeMain | cleao | General Support | 2 | 2007-04-06 22:24 |
| .NET exception in MYTV | donc99 | General Support | 9 | 2006-07-09 11:47 |
| Unhandled exception in Microsoft .NET Framework | csberto | The old Bugreport Forum | 4 | 2006-02-18 17:28 |