-
January 18th, 2010, 04:21 PM
#1
Silverlight Client Connection problem in IE
Hi,
I tried the SilverLight Client with Presto version of Lightstreamer but am stuck with a problem in IE.
The first time I open the browser, I Click on a button which opens a Silverlight window that displays the prices / values come across from the adapter and everything works fine.
When I close the Window, I issue client.closeconnection. However, when I click the button again, when the window opens it throws the error:
Listener Error ... Subscription Failed: No Session is active
Lightstreamer.Dotnet.Client.SubscrException: Connection Closed
at Lightstreamer.Dotnet.Client.LSClient.get_ConnManag er()
at Lightstreamer.Dotnet.Client.LSClient.SubscribeTabl e(ExtendedTableInfo table, IHandyTableListener list)
The Problem only occurs in Internet Explorer (IE)
when I open the URL in other browsers (Google Chrome / Mozilla Firefox), it works fine - how many ever times you open and close the window.
Looking forward to your suggestions.
-
January 19th, 2010, 09:46 AM
#2
You have to ensure that OpenConnection, SubscribeTable and CloseConnection are invoked in the correct sequence.
According to your description, it seems that IE, upon a window restart, does not invoke, towards the Silverlight runtime, the same methods as other browsers
and that some different event has to be intercepted in order to call OpenConnection.
A different possibility is that you call OpenConnection and SubscribeTable from different threads, related with different events
and, for some reason:
- upon the first opening of the window OpenConnection gets called first,
- whereas, upon the second opening, SubscribeTable gets called first.
In any case, you should trace your calls to OpenConnection.
Unfortunately, we haven't got much expertise about how events are triggered in Silverlight.
-
March 3rd, 2010, 01:44 PM
#3
Thanks Dario,
Will look into what you said -
also will try lightstreamer 3.6 and see if it resolves the issue
will get back to you with the results
Cheers
-
December 15th, 2010, 03:21 PM
#4
Did you resolve it
Hey, we are having same problem intermittently. API issues unsubscription on it's own and connection gets lost. did you get any resolution?
-
December 16th, 2010, 09:48 AM
#5
Did you try to trace OpenConnection, SubscribeTable and CloseConnection callsas Dario suggests?
API issues unsubscription on it's own and connection gets lost.
Please can you clarify? Do you see unsubscription requests being sent to the server (can you attach a server log?) and after that the client closes the connection?
Please do not get confused by the unsubscription calls on the DataAdapter as those are not an evidence of the client sending an unsubscription request.
-
December 16th, 2010, 12:07 PM
#6
Hi,
I'm sorry, I forgot to mention that there is a known bug in the current library that, if the stream-sense is active (see http://lightstreamer.com/docs/client...eamSense1.html ) can lead to refused subscriptions (this only happens if subscriptions are performed soon after the openConnection method exits due to a race condition).
We may provide you with a fixed library if you can't wait for the official release expected in Q1 2011. If that's the case please write to support@lightstreamer.com.
Similar Threads
-
By ned_b in forum Client SDKs
Replies: 4
Last Post: August 24th, 2011, 10:31 AM
-
By emiliob in forum Client SDKs
Replies: 7
Last Post: June 21st, 2010, 02:59 PM
-
By gjoseph in forum Client SDKs
Replies: 1
Last Post: November 13th, 2009, 11:14 AM
-
By latha in forum Adapter SDKs
Replies: 9
Last Post: June 3rd, 2009, 09:56 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 10:19 PM.
Bookmarks