3 Replies Latest reply on Mar 23, 2016 1:18 PM by David Hearn

    MVC 4 ASP.NET 4.0 project, AFSDK v.4.0.0.0. problems

    Ivica

      I have an existing MVC4 ASP.NET 4.0 project. I've added a new controller and I've referenced Osisoft.AFSDK.dll version 4.0.0.0. Tried to create PIServer object like:

       

      PIServer myPiServer = new PIServers()["TEST"];

       

      Everthing is Ok, IntelliSense working ok, Resharper throws no errors , but when I'm trying to compile the solution it gives me an error: The type or namespace name 'OSIsoft' could not be found (are you missing a using directive or an assembly reference?

       

      OSIsoft namespace problem.jpg

      AFValue.jpg

      Project Target Framework is .NET Framework 4.0. guess it should be enough right?

      TargetFrameWork.jpg