Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

Could not load file or assembly 'OpcNetApi, Version=5.53.405.1 - by: usmanshahid

$
0
0
I have a console application that uses EasyOpcClassic version 2018.2 5.53.405.1 for fetching OPC Alarms. I also use Avro Ipc version 1.8.3 (0.9.0.0) to perform some RPC calls to another server. When used together, this exception is thrown:



The stacktrace is:



More specifically, it happens when I call `Castle.Proxies.AvroProtocolCallbackProxy.getData()`.
Also, the code runs perfectly fine if I do not perform the above call. The call is an RPC request from an Avro client to an Avro Server.

The project uses .NET framework 4.6.1.
The strange bit is that Avro Ipc is unrelated to OPC, and I don't think QuickOpc packs OpcNetApi with itself.

Under the hood I can see that the assembly.GetTypes() call is being done on the assembly:


And this is throwing the TypeLoadException

Viewing all articles
Browse latest Browse all 1794

Trending Articles