home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
[TV-Server] Can't setup TV
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Mars Warrior" data-source="post: 81369" data-attributes="member: 10351"><p>I have compiled and installed everything, but I run into an error while trying to setup the TV configuration.</p><p></p><p>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 <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>Debugging shows me that while getting the cards, an error is returned by the TvServer, and as a result the above error is given.</p><p></p><p>Its about this part of the code:</p><p>static public IController Instance</p><p> {</p><p> get</p><p> {</p><p> try</p><p> {</p><p> if (_tvControl != null) return _tvControl;</p><p> _tvControl = (IController)Activator.GetObject(typeof(IController), String.Format("tcp://{0}:31456/TvControl", _hostName));</p><p> int card=_tvControl.Cards;</p><p> return _tvControl;</p><p> }</p><p> catch (Exception)</p><p> {</p><p> }</p><p> return _tvControl;</p><p> }</p><p> }</p><p></p><p>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. <strong>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"</strong>."</p><p></p><p>So, did I do something wrong (can't find any logfile of the TvService??), or is this a bug <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite9" alt=":eek:" title="Eek! :eek:" loading="lazy" data-shortname=":eek:" /></p><p></p><p><strong>UPDATE:</strong></p><p>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!)</p><p></p><p>So I found the log file, which tells me that the connectionstring is invalid:</p><p></p><p>5-10-2006 23:42:53 TV service started</p><p>5-10-2006 23:42:53 Controller: Started</p><p>5-10-2006 23:42:54 Exception :Error: DatabaseUnavailableUnclassified</p><p>Gentle.Common.GentleException: The database backend (provider SQLServer) could not be reached.</p><p>Check the connection string: ---> System.InvalidOperationException: The ConnectionString property has not been initialized.</p><p></p><p><strong>UPDATE II</strong></p><p>A new day...</p><p>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 <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite10" alt=":oops:" title="Oops! :oops:" loading="lazy" data-shortname=":oops:" /> </p><p></p><p>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 <strong>WRONG</strong> directory. So you have to read the installation manual very carefully and modify the installation directories.</p><p></p><p>Maybe I overlooked or mistyped something in the previous 2 installations...</p><p></p><p>And the result, well:</p><p>- The TvService takes about 10% CPU on my AMD 64 3200+</p><p>- Mediaportal running the TV Plugin about 40% (!!)</p><p>- I DO have synchronization problems with sound and video (using a PVR150MCE)</p><p>- I have a considerate channel switch delay of sometimes over 5 seconds using either LAN or WLAN</p><p>- It is VERY nice watching TV in the garden on a laptop while having breakfast without any cables attached... <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /> </p><p></p><p>In other words: I like it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="Mars Warrior, post: 81369, member: 10351"] 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. [B]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"[/B]." So, did I do something wrong (can't find any logfile of the TvService??), or is this a bug :eek: [B]UPDATE:[/B] 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. [B]UPDATE II[/B] 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 [B]WRONG[/B] 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 :thx: :thx: :thx: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
[TV-Server] Can't setup TV
Contact us
RSS
Top
Bottom