AnsweredAssumed Answered

Referencing AFSDK Issues

Question asked by CalebH on Feb 13, 2017
Latest reply on Feb 13, 2017 by rdavin

Hello.  I am having a problem getting even a basic AFSDK app in VB.NET (VS 2015) to connect to a PI Server (PI Data Archive 2016 R2).  I have tried the following:

  • referencing the AFSDK.dll file in the "PublicAssemblies" folder
  • copying that file to the project folder and referencing it from there
  • changing target .NET Framework version from 4.5.2 -> 4.6 -> 4.6.1
  • uninstalling/reinstalling PI AF Client 2016


I can get information like the version of the AFSDK (via AFGlobalSettings.SDKVersion), but if I try to access classes like PIServer or PIPoint under OSIsoft.AF.PI, they simply don't exist.  There is probably an easy solution but I am running out of ideas.