I am trying to implement OPC services in our test framework and I am running in to this issue:
Message=Could not load type 'System.Runtime.InteropServices.FILETIME' from assembly 'mscorlib, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at OpcCom.Da.Interop.GetItemValues(IntPtr& pInput, Int32 count, Boolean deallocate)
at OpcCom.Da20.Subscription.Read(ItemValueResult items, Boolean cache)
at OpcCom.Da20.Subscription.Read(ItemIdentifier itemIDs, Item items)
at OpcCom.Da.Subscription.Read(Item items)
at Opc.Da.Subscription.Read(Item items)
I have installed the latest redistributables and opc .net rcw, but it still gives me this error.
Our project runs with .NET 6 and I have managed to do a Connect & Subscribe. I had some issues then, but when installing the redistributable for x64 it worked. But when trying to do a Read I ran in to this issue.
The sample clients build and run without issues.
What assemblies should I be looking at?