Search Unity

OSISoft afsdk not compatible

Discussion in 'Editor & General Support' started by robjay2019, May 1, 2019.

  1. robjay2019

    robjay2019

    Joined:
    May 1, 2019
    Posts:
    1
    Hi, just wondering if anyone has ever used OSIsoft.AFSDK.dll in unity to fetch data from a PI historian?
    This is coming from file version 2.8.97 which is PI 2015 R2 I believe.

    DLL's also added to the Plugins folder are

    OSIsoft.AFSDK.dll
    OSIsoft.PI.Configuration.dll
    OSIsoft.PI.Configuration.PISDKRegDirectoryProvider.dll
    OSIsoft.PI.Net.Core.dll
    OSIsoft.PI.Net.dll
    OSIsoft.PI.Resources.dll
    System.DirectoryServices.AccountManagement.dll
    Microsoft.VisualBasic.dll

    Unfortunately it bombs out on the very first line of code that's critical to accessing the Historian server
    PIServers PiServers = new PIServers();

    Error is : Unloading broken assembly Assets/Plugins/OSIsoft.AFSDK.dll, this assembly can cause crashes in the runtime