AnsweredAssumed Answered

PI-SDK Open() works but not AFSDK Connect() ?

Question asked by GuillaumeBOURSIER2 on May 25, 2018
Latest reply on May 29, 2018 by tramachandran

Hello fellow PI-Square members,

I'm trying to maintain an application that check several parameters on remote PI servers, notably PI mappings.

It seems quite easy to do that with AFSDK ( PIServer.IdentityMappings), and indeed it works well on several servers, as soon as the application service account have access to Database Security item: PIMAPPING.


It works very well on a wide variety of servers, except one, where I have an Connection error


It is strange because when I check the security using PI-SMT, it works !

Do you have an idea why that works:

                PISDK.PISDK oPISDK;

                oPISDK = new PISDK.PISDK();


And not that:

                OSIsoft.AF.PI.PIServer oPiServer;               

                oPiServer = OSIsoft.AF.PI.PIServer.FindPIServer(sServer);               


Thank you in advance !