.NET APIs for remote calls
This section contains the .NET API and .NET Class API types. Before you start using the classes/methods from the IntervalZero.KINGSTAR.OpcUa Namespace, make sure to reference the required NuGet package "OPCFoundation.NetStandard.Opc.Ua.Client"; otherwise, it may cause problems when executing the program. Additionally, it's recommended to reference the above NuGet package with version after 1.4.370.12 as it has been verified by KINGSTAR.
NOTE:
-
KINGSTAR 4.5 is verified with NuGet package version 1.4.371.96 and it is not recommended to upgrade to newer version due to compatibility issue.
-
If the programming system you are using is installed with KINGSTAR SDK, you have to reference both of the required NuGet package of OPCFoundation.NetStandard.Opc.Ua.Client with version after 1.4.370.12 and the two KINGSTAR dlls (IntervalZero.KINGSTAR.Base.dll and IntervalZero.KINGSTAR.OpcUa.Client.dll) from the bin folder "C:\Program Files\IntervalZero\KINGSTAR SDK\[KINGSTAR version]\bin".
-
If the programming system you are using is installed with KINGSTAR Runtime, you can simply reference the two KINGSTAR dlls (IntervalZero.KINGSTAR.Base.dll and IntervalZero.KINGSTAR.OpcUa.Client.dll) from the bin folder "C:\Program Files\IntervalZero\KINGSTAR\bin" without referencing the NuGet package, as the required packages are included in the bin folder.
-
When the "System.IO.FileNotFoundException" message appears while running the program, it means that the required NuGet package has not been referenced. Please make sure to reference the required NuGet package before running the program. Here is an example of the exception message:
System.IO.FileNotFoundException: Could not load file or assembly 'Opc.Ua.Configuration, Version=1.4.370.0, Culture=neutral, PublicKeyToken=bfa7a73c5cf4b6e8' or one of its dependencies. The system cannot find the file specified.
Following are the included namespaces: