This project has moved and is read-only. For the latest updates, please go here.

Problem App DataSubscriber connection

Nov 16, 2011 at 3:51 PM


I am trying to make an App using the Data Subscriber. This App is implemented  on a local network (computer 1, IP: and its purpose is to connect to serve OpenPDC (computer 2, IP: and bring a specific measurement to computer 1. I  have had problems with the connection between computer 1 (App computer) and computer 2 (OpenPDC computer).  I have tried the connection in this way:

	   // Attach to subscriber events
            subscriber.StatusMessage += subscriber_StatusMessage;
            subscriber.ProcessException += subscriber_ProcessException;
            subscriber.ConnectionEstablished += subscriber_ConnectionEstablished;
            subscriber.ConnectionTerminated += subscriber_ConnectionTerminated;
            subscriber.NewMeasurements += subscriber_NewMeasurements;

            // Initialize subscriber
            subscriber.ConnectionString = "server=";

            // Start subscriber connection cycle

 I get the fallowing Exception:

EXCEPTION: Data subscriber encountered an exception while attempting publisher c
onnection: A socket operation was attempted to an unreachable network 192.168.0.

* What could be  the connection problem? for this development, what is the form to set the ConnectionString?

The firewall is disabled.


Nov 21, 2011 at 8:40 PM

Did you ever get this working - looks like a kind of network issue - are these two computers using the same subnet?