1 Reply Latest reply on Sep 14, 2017 12:25 PM by Rick Davin

    In which version of OSISoft.AFSDK does PIServer class exists?

    NaveenChiluka

      OSISoft.AF.PI.Server.PIServer in which version of PI Server does this class exist?

       

      I have verified in the OSISoft.AFSDK.dll which comes with the versions of following installs and I did not find the class with them

      PI Asset Framework (AF) Client 2010 R3 Install Kit (with PSE and AF SDK)

      PI Asset Framework (AF) Client 2012 Install Kit (with PSE and AF SDK)

      PI Asset Framework (AF) Client 2012 SP2 Install Kit (with PSE and AF SDK)

       

      Could some one help me in finding the lowest version of install in which this class is added?

        • Re: In which version of OSISoft.AFSDK does PIServer class exists?
          Rick Davin

          Hi Naveen,

           

          The OSIsoft.AF.PI namespace was introduced with AF 2012 (AF SDK 2.5.0.5039).  Here's the link to What's New with PI AF 2012, where the opening paragraph states you need the .NET 4.0 version of the AF SDK.  Be sure your app is targeting .NET Framework 4.0.  If you use LiveLibrary to look at help on the PIServer Class, you will see this note:

           

          2017-09-14 07_23_29-PIServer Class.png

           

          Which means your app should be sure to reference the 4.0 version of AF SDK, and not the 3.5 (or 2.0) version.

           

          In Windows File Explorer:

          2017-08-22+16_22_27-Resume+Point+2+Presentation.pptx+-+PowerPoint.png

           

          In Visual Studio:

          2017-09-11+09_51_11-AFApplet+-+Microsoft+Visual+Studio.png

          2 of 2 people found this helpful