MNiedba

PI-SDK 1.4 - Required *.dll files are missing?

Discussion created by MNiedba on May 18, 2012
Latest reply on May 22, 2012 by MvanderVeeken

Good morning

 

I was developing my custom application in C# .NET 4.0 that plays with PI-SDK. Everything was working fine until today. My application started to crash with following error:

 

 

 
System.IO.FileNotFoundException: Could not load file or assembly 'OSIsoft.PISDK, 

Version=1.4.0.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805' 

or one of its dependencies. The system cannot find the file specified.

 

 

 

 

My Visual Studio 2010 project is compiling without any errors.  The PI-SDK dll's (PISDK, PISDKCommon, PITimeServer) are set in the References section with following switches:

 

 

 
Copy Local: False
Embed Interop Types: False

Path: C:\Program Files\PIPC\PISDK\PublicAssemblies

 

 

In the .NET Framework GAC folder all those libraries are installed with correct version number and key token. Output from gacutil.exe:

 

 

 
  OSIsoft.PISDK, Version=1.4.0.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805, processorArchitecture=AMD64
  OSIsoft.PISDKCommon, Version=1.4.0.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805, processorArchitecture=AMD64
  OSIsoft.PITimeServer, Version=1.4.0.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805, processorArchitecture=AMD64
  Policy.1.0.Microsoft.Interop.Security.AzRoles, Version=6.1.7600.16385, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64
  Policy.1.2.Microsoft.Interop.Security.AzRoles, Version=6.1.7600.16385, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64
  policy.1.2.OSIsoft.PISDK, Version=1.4.0.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805, processorArchitecture=AMD64
  policy.1.2.OSIsoft.PISDKCommon, Version=1.4.0.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805, processorArchitecture=AMD64
  policy.1.2.OSIsoft.PITimeServer, Version=1.4.0.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805, processorArchitecture=AMD64
  policy.1.3.OSIsoft.PISDK, Version=1.4.0.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805, processorArchitecture=AMD64
  policy.1.3.OSIsoft.PISDKCommon, Version=1.4.0.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805, processorArchitecture=AMD64
  policy.1.3.OSIsoft.PITimeServer, Version=1.4.0.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805, processorArchitecture=AMD64

 

 

 

 

I do not have any other OSIsoft libraries or policies installed in GAC.

 

Do you have any idea, what could happen? I do not think that something was changed in my environment, that may produce such issue.

 

I do not understand why such error occur, because required dll's are present in GAC. Is there any other place that PI-SDK is looking for libraries, so I must copy them there?

 

Thank you very much for help.

 

 

Outcomes