TV4Home - WCF Webservice for MediaPortal TV Server (4 Viewers)

akoeplinger

Portal Member
December 13, 2010
15
8
Home Country
Austria Austria
I've attached a version of CoreService that is compiled against your binaries.

Alex
 

Attachments

  • TV4Home.Server.CoreService.SetupSVN27771.zip
    811.3 KB

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: TV4Home - WCF Webservice for MediaPortal TV Server

    thanks! going to test now :)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: TV4Home - WCF Webservice for MediaPortal TV Server

    it's working again :)
     

    Oxan

    Retired Team Member
  • Premium Supporter
  • August 29, 2009
    1,730
    1,124
    Home Country
    Netherlands Netherlands
    I'm having some problems under high load (multiple concurrent queries). After waiting a few minutes everything seems to work fine again. It seems to be caused by an exception in the GetChannelBasicById function (but the channel does exist, as the same code works later). Is there some way I can debug this kind of errors?
    Code:
    2011-04-29 13:50:15.395372: 25: Exception: System.TimeoutException: The open operation did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---> System.TimeoutException: The read from the pipe did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.PipeConnection.WaitForSyncRead(TimeSpan timeout, Boolean traceExceptionsAsErrors)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.PipeConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.ConnectionUpgradeHelper.InitiateUpgrade(StreamUpgradeInitiator upgradeInitiator, IConnection& connection, ClientFramingDecoder decoder, IDefaultCommunicationTimeouts defaultTimeouts, TimeoutHelper& timeoutHelper)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
    2011-04-29 13:50:15.395372: 25:      --- End of inner exception stack trace ---
    2011-04-29 13:50:15.395372: 25:   
    2011-04-29 13:50:15.395372: 25:   Server stack trace: 
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    2011-04-29 13:50:15.395372: 25:      at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    2011-04-29 13:50:15.395372: 25:   
    2011-04-29 13:50:15.395372: 25:   Exception rethrown at [0]: 
    2011-04-29 13:50:15.395372: 25:      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    2011-04-29 13:50:15.395372: 25:      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    2011-04-29 13:50:15.395372: 25:      at TV4Home.Server.TVEInteractionLibrary.Interfaces.ITVEInteraction.GetChannelBasicById(Int32 channelId)
    2011-04-29 13:50:15.395372: 25:      at MPWebStream.Site.StreamPage.ProcessRequest(HttpContext context)
    2011-04-29 13:50:15.395372: 25: Finishing timeshifting
     

    Mike Lowrey

    Portal Pro
    February 4, 2009
    638
    124
    Berlin
    Home Country
    Germany Germany
    You can debug this by debugging the ConsoleHost with Visual Studio.

    To do this you have to start Visual Studio with admin rights and then just start a new instance of the ConsoleHost application...
     

    Oxan

    Retired Team Member
  • Premium Supporter
  • August 29, 2009
    1,730
    1,124
    Home Country
    Netherlands Netherlands
    I created a build of the current MP_SVN branch against MediaPortal 1.2.0 Beta. It works fine, maybe it's useful for other people too :)

    mike: thanks, I'll take a look.
     

    Attachments

    • TV4Home.Server.CoreService.Setup.zip
      792.7 KB

    Airshark

    MP Donator
  • Premium Supporter
  • February 23, 2007
    378
    23
    Baden- Württemberg
    Home Country
    Germany Germany
    AW: TV4Home - WCF Webservice for MediaPortal TV Server

    Mhh.. the TVGuide is not running anymore with the new Mp Beta :/
    Is there a possibility to fix this?
     

    akoeplinger

    Portal Member
    December 13, 2010
    15
    8
    Home Country
    Austria Austria
    Hi!

    The MediaPortal 1.2 Beta changes some of the DB tables, so we need to update that in the TV4Home Webinterface, which will happen most likely with TV4Home v0.2.

    Alex
     

    Mike Lowrey

    Portal Pro
    February 4, 2009
    638
    124
    Berlin
    Home Country
    Germany Germany
    I've compiled the CoreService against the MP 1.2 beta assemblies and added an updated version for MP 1.1.3(minor update!).
    TV4Home - The all-in-one TV solution! - Download: 0.1.0.0 Preview


    Edit:

    And for those who want to use the webinterface with MP 1.2b here is a new Tv Server Plugin and the updated files.

    It's nearly the same like alway... extract the TV4Home folder to C:\ProgramData
    Copy the three assemblies to the plugin dir of MP and activate the plug in in setuptv.exe.

    The only difference is that you now need a current version of the CoreService installed.

    Have fun ;)
     

    Users who are viewing this thread

    Top Bottom