Lost Connection to TV-Server (1 Viewer)

raschid

New Member
September 18, 2013
13
0
61
Home Country
Germany Germany
Good morning,

i've been trying to use MP 1.4.0 for a while now but i allways run in trouble with the TV-Server.
It doesn't work correctly.
Yesterday, after deinstall of MP and reinstall of TV-Card-Drivers i installed NextPVR and it worked fine.
I deinstalled NextPVR, installed MP, started the TV-Server-Config - all worked fine, i managed to watch liveTV.
Now today i get the same strange Error as before:

Failed to startup tvserviceSystem.Net.Sockets.SocketException

It says, that the host-Computer refuses connection on 192.xxx.xxx.xxx:31456

What Port is that?

Can anyone help?

And: i read most of the Posts regarding TV-Servers and i did NOT do a windows update since i reinstalled MP

I use
- Win 7 ultimate, 64Bit
- MP 1.4.0
- Digital Devices Cine CT

The logfile:

[2013-09-18 11:17:00,795] [Log ] [SetupTv ] [ERROR] - ServiceHelper: Starting TvService failed. Please check your installation.
Error: System.InvalidOperationException: Der Dienst TVService kann nicht auf dem Computer . gestartet werden. ---> System.ComponentModel.Win32Exception: Der Abhängigkeitsdienst oder die Abhängigkeitsgruppe konnte nicht gestartet werden
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.ServiceProcess.ServiceController.Start(String[] args)
bei System.ServiceProcess.ServiceController.Start()
bei SetupTv.ServiceHelper.Start(String aServiceName)
[2013-09-18 11:17:01,043] [Log ] [SetupTv ] [ERROR] - Failed to wait for Global\MPTVServiceInitializedEvent
[2013-09-18 11:17:01,044] [Log ] [SetupTv ] [ERROR] - Exception :confused:ystem.Threading.WaitHandleCannotBeOpenedException: Es gibt kein Handle mit diesem Namen.
bei System.Threading.EventWaitHandle.OpenExisting(String name, EventWaitHandleRights rights)
bei SetupTv.ServiceHelper.WaitInitialized(Int32 millisecondsTimeout)

[2013-09-18 11:17:25,603] [Log ] [SetupTv ] [ERROR] - ServiceHelper: Starting TvService failed. Please check your installation.
Error: System.InvalidOperationException: Der Dienst TVService kann nicht auf dem Computer . gestartet werden. ---> System.ComponentModel.Win32Exception: Der Abhängigkeitsdienst oder die Abhängigkeitsgruppe konnte nicht gestartet werden
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.ServiceProcess.ServiceController.Start(String[] args)
bei System.ServiceProcess.ServiceController.Start()
bei SetupTv.ServiceHelper.Start(String aServiceName)
[2013-09-18 11:17:25,605] [Log ] [SetupTv ] [ERROR] - Failed to wait for Global\MPTVServiceInitializedEvent
[2013-09-18 11:17:25,606] [Log ] [SetupTv ] [ERROR] - Exception :confused:ystem.Threading.WaitHandleCannotBeOpenedException: Es gibt kein Handle mit diesem Namen.
bei System.Threading.EventWaitHandle.OpenExisting(String name, EventWaitHandleRights rights)
bei SetupTv.ServiceHelper.WaitInitialized(Int32 millisecondsTimeout)

[2013-09-18 11:17:50,197] [Log ] [SetupTv ] [ERROR] - Exception :confused:ystem.Net.Sockets.SocketException: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte 192.168.178.250:31456

Server stack trace:
bei System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
bei System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(AddressFamily family)
bei System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
bei System.Runtime.Remoting.Channels.RemoteConnection.GetSocket()
bei System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
bei System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
bei System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
bei System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
bei TvControl.IController.get_Cards()
bei SetupTv.Startup.Main(String[] arguments)
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Good morning...
    Hello :)

    Failed to startup tvserviceSystem.Net.Sockets.SocketException

    It says, that the host-Computer refuses connection on 192.xxx.xxx.xxx:31456
    31456 is the MySQL database port.

    Two questions:
    1. Are you running a firewall? If so please try disabling it temporarily and see if it helps.
    2. Have you set up TV Server with a static IP address? This is highly recommended.
    Just to be clear, this error message indicates TV Server is not handling the network configuration/environment. It is no reflection on whether your tuners are working correctly or not.
     

    raschid

    New Member
    September 18, 2013
    13
    0
    61
    Home Country
    Germany Germany
    thanks mm1352000,

    turning off the firewall is exactly what i'm trying in this very moment.
    So, mhm, 31456 is mysql's port?
    Then i probably should take a look into the workbench? I try that next.

    The Server (PC) has a static IP. But probably its a problem with local and network-ips? I installed mysql before MP and i remember there can be some problems ...[DOUBLEPOST=1379501771][/DOUBLEPOST]mhm, the workbench says mysql-port is 3306 ...
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    mhm, the workbench says mysql-port is 3306 ...
    Sorry, you're right - don't know what I was thinking. It has been a long day. (11pm here in New Zealand)

    31456 is the port that TV Server uses for .NET remoting. That is the communication technology used between the MP client/frontend and TV Server.
     

    raschid

    New Member
    September 18, 2013
    13
    0
    61
    Home Country
    Germany Germany
    ok,
    - i switchet off firewall - no change
    - switched it on and applied
    netsh advfirewall firewall add rule name=SQLPort_31456 dir=out action=allow protocol=TCP localport=31456
    netsh advfirewall firewall add rule name=SQLPort_31456 dir=in action=allow protocol=TCP localport=31456
    Windows answered "ok" to both but still no change, even after reboot
    - updated .NET via windows update, unchecking update for malware detection tool - no change even after reboot
    - deinstalled MP and reinstalled with "all on one PC"-option: TV-server works fine, managed to watch live TV
    - after reboot i get the same errors "TV Server not started" and "connection blocked for ip ...:13456"

    wtf? does anyone have an explanation for that behaviour? Please?
     

    Vasilich

    Portal Pro
    August 30, 2009
    3,394
    1,170
    Germany, Mayence
    Home Country
    Russian Federation Russian Federation
    already checked this port with TCPView? Do you have any other software blocking file execution/network connections (any antivirus with some enhanced/nasty features, some monitoring tools, other .net applications )?
     

    raschid

    New Member
    September 18, 2013
    13
    0
    61
    Home Country
    Germany Germany
    I have no antivir-software so far, only windows firewall.
    Twonky server was running, but i deinstalled it now.
    I use Uniserver as Webserver. It comes with build-in mysql database. Mysql-connections seem to be ok.

    further software installed is 7zip, xmediarecode, hwinfo64, irfanview, win7codecs, mp3tags and mysqlworkbench.
    No .Net-software, as far as i can see.

    I connect to the PC via windows remotedesktop. Both PCs are in the same (home)-Lan.


    This is, what TCPView shows when I try to start the TV-Server-Config

    tcpview.jpg
    [DOUBLEPOST=1379584997][/DOUBLEPOST]mhm, another question: the blocked IP is 192.168.178.250 under which i can access for instance the webserver from another client.
    Can it be, that this should be a local IP like 127... ?
     
    Last edited:

    raschid

    New Member
    September 18, 2013
    13
    0
    61
    Home Country
    Germany Germany
    I deactivated IPV6 in the Router (it wasn't in use anyway) and on the windows-pc via adapter-config.
    After reboot everything seems to work ok, except the tv server... same error again

    which suspects do you mean?
     

    Users who are viewing this thread

    Top Bottom