12/02/2022
Hi,
I am trying to implement OPC services in our test framework and I am running in to this issue:
System.TypeLoadException
HResult=0x80131522
Message=Could not load type 'System.Runtime.InteropServices.FILETIME' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Source=OpcNetApi.Com
StackTrace:
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.
12/02/2022
Hi,
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?
1 Guest(s)