AnsweredAssumed Answered

Can't find PI System via .NET AF SDK app

Question asked by MarkWard on Dec 20, 2018
Latest reply on Dec 20, 2018 by gregor

Hi,

 

Myself and a colleague are trying to use an app to connect to a PI System on our corporate network. I can connect, but he cannot.

In app, the code we are using to find the systems is like so (minified example):

public class AfConnectionHelper
{
private readonly PISystem _piSystem;
private readonly PISystems _piSystems = new PISystems();
private string _databaseName;

/// <summary>
/// Initialize an AF Connnection object.
/// it is required to call the Connect method before getting Database or the connected PISystem object
/// </summary>
/// <param name="server">Name of the PI System (AF Server) to connect to</param>
/// <param name="databaseName">Name of the AF DatabaseName to connect to</param>
public AfConnectionHelper(string server, string databaseName = null)
{
if (_piSystems.Contains(server))
_piSystem = _piSystems[server];
else
throw new KeyNotFoundException("Specified PI System does not exist");

_databaseName = databaseName;
}
}

 

For me, the server is found inside _piSystems, however for my colleague it is not and he receives the 'Specified PI System does not exist' error.

The server we are looking for is called GL-SQL-02. My _piSystems appears like:

but for my colleague it is:

I've confirmed that we can both telnet to 5450 and 5457 on GL-SQL-02, and using the AboutPI-SDK utility we can both connect to it.

I got him to do the support data feature with the server/connectivity issues box checked and have attached it.

Also confirmed that he has access rights to the PI System and can connect and see databases via PI System Explorer.

 

Any help appreciated!

Thanks,

Attachments

Outcomes