AnsweredAssumed Answered

Problem in deploying AFSDK based application.

Question asked by mdspath on Jun 17, 2016
Latest reply on Jun 19, 2016 by John Messinger

Hi guys,


I have a problem in deploying the AFSDK based application.

I have windows 2008 R2 server and have installed PI AF server 2015 R2, PI Server 2012.

Everything is working fine in the development environment  but when all the dependent files and folder copied to the Virtual machine in cloud, getting the below exception.

I am sure OSIsoft.PI.Net.Core.dll is present where the exe is. Even this file is found in the gac folder of windows.

Have proper license also.


System.IO.FileNotFoundException: Could not load file or assembly 'OSIsoft.PI.Net.Core.dll' or one of its dependencies. The specified module could not be found.

File name: 'OSIsoft.PI.Net.Core.dll'

   at OSIsoft.AF.PI.PIServer..ctor(PIServersGlobal parentCollection, Guid id, String uniqueID, String name, ConnectionEntity connectionEntity, PIServerRoleEntity roleEntity)

   at OSIsoft.AF.PI.PIServersGlobal.LoadServer(DomainTable domainTable, ConnectionEntity defaultConnection, ConnectionEntity connection, IDictionary`2 piserverIDs, Boolean raiseEvents)

   at OSIsoft.AF.PI.PIServersGlobal.Load(Boolean force)

   at OSIsoft.AF.PI.PIServersGlobal..ctor(PISystemsGlobal systems)

   at OSIsoft.AF.PISystemsGlobal.get_PIServers()

   at OSIsoft.AF.PI.PIServersGlobal.GetPIServers(PISystemsGlobal systems)

   at OSIsoft.AF.PI.PIServersGlobal.GetPIServers(PISystems systems)

   at OSIsoft.AF.PI.PIServers..ctor()

   at CRM.OSIPI.OsiAF.Connect()



Looking forward for your answer.

Thanks in advance.