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
WebService and Mobile Access
TV4Home - WCF Webservice for MediaPortal TV Server
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="Oxan" data-source="post: 692453" data-attributes="member: 97484"><p>I get the following error when trying to start a timeshifting from C#.NET:</p><p>[code][FaultException`1: No connection could be made because the target machine actively refused it 10.1.1.21:31456]</p><p> System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +10257978</p><p> System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +539</p><p> MPWebStream.TVEInteraction.ITVEInteraction.SwitchTVServerToChannelAndGetTimeshiftFilename(Int32 channelId) +0</p><p> MPWebStream.TVEInteraction.TVEInteractionClient.SwitchTVServerToChannelAndGetTimeshiftFilename(Int32 channelId) +103</p><p> MPWebStream.Site.Streamer.stream() +981</p><p> MPWebStream.Site.Streamer.run(HttpContext context) +324</p><p> MPWebStream.Site.Pages.Stream.ProcessRequest(HttpContext context) +47</p><p> System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +586</p><p> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +177</p><p>[/code]</p><p></p><p>Basically, my code is this:</p><p>[code] // connect to TV4Home service</p><p> // FIXME: make configurable</p><p> EndpointAddress address = new EndpointAddress(String.Format("http://{0}:4321/TV4Home.Server.CoreService/TVEInteractionService", "mediastreamer.lan"));</p><p> TVEInteractionClient tvWebClient = new TVEInteractionClient("BasicHttpBinding_ITVEInteraction", address);</p><p> WebChannel ch = tvWebClient.GetChannelById(301);</p><p></p><p>// more things not so relevant</p><p></p><p> sourceFilename = tvWebClient.SwitchTVServerToChannelAndGetTimeshiftFilename(ch.IdChannel);</p><p>[/code]</p><p>Am I doing something wrong or did I just hit a bug? Weird thing is that the GetChannelById() call works, but the next one fails.</p><p></p><p>(full sourcecode is available <a href="http://github.com/oxan/mpwebstream" target="_blank">here</a>, mainly MPWebStream/Streamer.cs is interesting).</p></blockquote><p></p>
[QUOTE="Oxan, post: 692453, member: 97484"] I get the following error when trying to start a timeshifting from C#.NET: [code][FaultException`1: No connection could be made because the target machine actively refused it 10.1.1.21:31456] System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +10257978 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +539 MPWebStream.TVEInteraction.ITVEInteraction.SwitchTVServerToChannelAndGetTimeshiftFilename(Int32 channelId) +0 MPWebStream.TVEInteraction.TVEInteractionClient.SwitchTVServerToChannelAndGetTimeshiftFilename(Int32 channelId) +103 MPWebStream.Site.Streamer.stream() +981 MPWebStream.Site.Streamer.run(HttpContext context) +324 MPWebStream.Site.Pages.Stream.ProcessRequest(HttpContext context) +47 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +586 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +177 [/code] Basically, my code is this: [code] // connect to TV4Home service // FIXME: make configurable EndpointAddress address = new EndpointAddress(String.Format("http://{0}:4321/TV4Home.Server.CoreService/TVEInteractionService", "mediastreamer.lan")); TVEInteractionClient tvWebClient = new TVEInteractionClient("BasicHttpBinding_ITVEInteraction", address); WebChannel ch = tvWebClient.GetChannelById(301); // more things not so relevant sourceFilename = tvWebClient.SwitchTVServerToChannelAndGetTimeshiftFilename(ch.IdChannel); [/code] Am I doing something wrong or did I just hit a bug? Weird thing is that the GetChannelById() call works, but the next one fails. (full sourcecode is available [url=http://github.com/oxan/mpwebstream]here[/url], mainly MPWebStream/Streamer.cs is interesting). [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
TV4Home - WCF Webservice for MediaPortal TV Server
Contact us
RSS
Top
Bottom