10 Replies Latest reply on May 29, 2018 6:11 PM by tramachandran

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


      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 !