Jump to content
Sign in to follow this  
Guest andreif

IStreamingListener.Start() hangs for indefinite time

Recommended Posts

Guest andreif

I’m trying to subscribe for news stream (using WPF), and the sample code hangs on IStreamingListener.Start() call for some indefinite time. (I waited 5 mins). Nothing seem to happen, and only debug output shows this message from time to time:

A first chance exception of type ‘Lightstreamer.DotNet.Client.PushLengthException’ occurred in StreamingClient.Lightstreamer.dll

Stack trace:
>   StreamingClient.Lightstreamer.dll!Lightstreamer.DotNet.Client.PushServerTranslator.WaitCommand(System.IO.StreamReader pushStream) Line 740  C#
StreamingClient.Lightstreamer.dll!Lightstreamer.DotNet.Client.PushServerProxy.WaitCommand(Lightstreamer.DotNet.Client.ServerManager.ActivityController activityController) Line 417 + 0x11 bytes    C#
StreamingClient.Lightstreamer.dll!Lightstreamer.DotNet.Client.PushServerProxy.WaitUpdate(Lightstreamer.DotNet.Client.ServerManager.ActivityController activityController) Line 457 + 0xc bytes  C#
StreamingClient.Lightstreamer.dll!Lightstreamer.DotNet.Client.ServerManager.WaitEvents() Line 336 + 0x14 bytes  C#
StreamingClient.Lightstreamer.dll!Lightstreamer.DotNet.Client.ServerManager.SessionActivityManager.Run() Line 667 + 0xe bytes   C#
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x63 bytes  
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool ignoreSyncCtx) + 0xb0 bytes    
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x2c bytes    
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 bytes 

Exception is thrown one line upper this string:

if (extraMsg.StartsWith(“END”))

error message is “Connection consumed”

UPD this problem happens, when using http (not https) streaming URL.
UPD2 surprisingly, the same code works with Silverlight version (using http) and accepts newsfeeds correctly

Share this post


Link to post
Guest andreif

Can you please show me your source code here you are using to subscribe to news?

You can use code from the Example.FetchNews sample. Just replace https with http.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×