[TV-Server] Can't setup TV (1 Viewer)

Mars Warrior

Portal Pro
August 26, 2004
158
2
Airy Crater, Mars
I have compiled and installed everything, but I run into an error while trying to setup the TV configuration.

The setup tells me that the "TvService is not running". But ofcourse this service IS running, and I can also see a short connection setup in my firewall ;)

Debugging shows me that while getting the cards, an error is returned by the TvServer, and as a result the above error is given.

Its about this part of the code:
static public IController Instance
{
get
{
try
{
if (_tvControl != null) return _tvControl;
_tvControl = (IController)Activator.GetObject(typeof(IController), String.Format("tcp://{0}:31456/TvControl", _hostName));
int card=_tvControl.Cards;
return _tvControl;
}
catch (Exception)
{
}
return _tvControl;
}
}

The Exception seems to be an COM+ related SQL error, errorcode -532459699, which is (using the help in VS2005) described as: "Note also that the SqlException handler tests the dialogTrans SqlTransaction object to see if it is still active (i.e. it has a connection to the database). If it is active, it is rolled back to ensure transactional consistency. If you attempt to commit/rollback an inactive object you will see a SystemException indicating a COM+ exception code of 0xE0434F49 (-532459699) with text "This SqlTransaction has completed; it is no longer usable"."

So, did I do something wrong (can't find any logfile of the TvService??), or is this a bug :eek:

UPDATE:
I did some more searching, and the reason I couldn't find the log file is that the installation directory is not Team MediaPortal but simply MediaPortal (BIG BUG!)

So I found the log file, which tells me that the connectionstring is invalid:

5-10-2006 23:42:53 TV service started
5-10-2006 23:42:53 Controller: Started
5-10-2006 23:42:54 Exception :Error: DatabaseUnavailableUnclassified
Gentle.Common.GentleException: The database backend (provider SQLServer) could not be reached.
Check the connection string: ---> System.InvalidOperationException: The ConnectionString property has not been initialized.

UPDATE II
A new day...
I deinstalled everything, and installed SQL Server, the TV Server and the TV Plugin again, and still that error. So I deinstalled/installed everything for the third time and now it is simply working :oops:

I don't know what I did different, but I do know that the MSI installers install both the TV Server and the TV Plugin in thw WRONG directory. So you have to read the installation manual very carefully and modify the installation directories.

Maybe I overlooked or mistyped something in the previous 2 installations...

And the result, well:
- The TvService takes about 10% CPU on my AMD 64 3200+
- Mediaportal running the TV Plugin about 40% (!!)
- I DO have synchronization problems with sound and video (using a PVR150MCE)
- I have a considerate channel switch delay of sometimes over 5 seconds using either LAN or WLAN
- It is VERY nice watching TV in the garden on a laptop while having breakfast without any cables attached... :p :p

In other words: I like it :D :D :D
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

OP Similar threads Forum Replies Date
J TV Server setup question Newcomers Forum 0
A Client/Server Setup: Slow TV Startup Television (MyTV frontend and TV-Server) 0
raffe How do I setup MP2 as an UPnP server? General 3
splatterpop My optimized dvb epg configuration for tv server MediaPortal 1 Talk 0
M 1.25.0 Tv Server Configuration Italian Dvb-t2 test channel preview error Television (MyTV frontend and TV-Server) 2
M TV Server Preview Window is blank, sounds works Television (MyTV frontend and TV-Server) 3
catalpa ...immer mal wird der Server abgekoppelt :( Allgemeines Support- und Diskussionsforum 0
A Keine Verbindung mit Kodi auf Server Allgemeines Support- und Diskussionsforum 11
CyberSimian Unhandled exception in TV Server TV-Server 0
Grisu002 Failed to startup - TV Server funktioniert nicht Allgemeines Support- und Diskussionsforum 0
ajs [WiP] 5030: Add UHD Thumb size to TV Server MediaPortal 1 0
toricred [solved] Configuring TV Server to use NAS General 5
T Client / Server slow channel-to-channel change (zapping) General Support 1
T Server / client channel logo location Installation, configuration support 6
framug [solved] Some changes/fix in MP1 configuration client and server Submit: code patches (MediaPortal/TV-Server/etc.) 14
S TV-Server MP1 - Automatic search doesn't work Installation, configuration support 2
M TV Server can't tune to some DVB-S multiplexes while other software can General 0
D [solved] Changed username in Win10, now TV Server config crashes on fresh install Installation, configuration support 1
I [solved] Connection to TV Server MySQL General Support 8
mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
F After resume, TV Server connection screen is shown General Support 4
R TV server crash with WintTV quadHD General 0
R MP Server und Fileshare Einsteigerforum 4
R [further infos missing] some movies freezing evry seconds Submit: Bug Reports 9
I MP Server goes into suspend, because it doesn't detect the MP Client General Support 6
Similar threads

























Top Bottom