Stream disconnecting

1 post / 0 new
anil.bhatia
Stream disconnecting

Hi,

I am building an app in .net that subscribes to a couple of epics, but I am experiencing (what appears to be random) connection errors.

I seem to have two:

Lightstreamer.DotNet.Client.PushConnException: Unable to read data from the transport connection: The connection was closed. ---> System.IO.IOException: Unable to read data from the transport connection: The connection was closed.

and

Lightstreamer.DotNet.Client.PushServerException: No data from server

A couple of questions..

- How can I find out why the connection was closed for the first error? My initial hunch was this was due to credentials expiring, but I would assume the error would indicate this, instead of being generic. I did find on another thread details about subscribing to a heart beat which I will try but I am trying to understand the main issue here.

- The second error seems to be generic as well. Any ideas what is causing this?

I tried to add some code that would reconnect on an error, but it fails with "Unable to connect to the remote server".

Any help would be greatly appreciated!

Thanks in advance,

Anil