Errors while connecting to PI SDK server.

Discussion created by sandeep.narang on Aug 25, 2011
Latest reply on Aug 30, 2011 by hanyong

Hi Team




I am using a WCF service in which I am connecting to PI SDK Server for PI eventing . This WCF service will be used by a windows application client. I am using the following piece of code to connect to the server.

if (!new PISDK.PISDK().Servers[serverName].Connected)
                            if (!string.IsNullOrEmpty(serverName))
                                server = new PISDK.PISDK().Servers[serverName];
                                throw new Exception("Please provide a valid server name.");



This WCF service is deployed on a windows service. When user attempts to call the method on the service to connect to PI SDK server, it throws following errors frequently.

 1. "Too soon to attempt reconnection."

2. "Unable to open a session on a server. [-10758] Failed to create remote

3. "Connection to the server lost."
To solve these isues, we need to restart the windows service. One thing I m sure that these issues occurs only when connecting to PI SDK server.
Can you plesse provide some information what could be the possible causes for these errors?