Skip to content
  • There are no suggestions because the search field is empty.

OPC Data Client WebService examples don't load.

When I try to run the sample WebService codes that are downloaded with the OPC Data Client I get the following error:

Could not load file or assembly 'OpcLabs.EasyOpcClassicRaw.amd64' or one of its dependencies......

OR

Could not load file or assembly 'OpcLabs.EasyOpcClassicRaw.amd86' or one of its dependencies......

This is a known but that will be addressed in version 5.33 of OPC Data Client. Below is a work around that is available:

What happens is that the loader tries to load all assemblies it finds in the Applications Code folder but does not complain when an unneeded assembly is missing. If you manually remove the unwanted assembly (the one listed in the exception message) from the 'bin' subfolder of your project before running the app, it will work. There are, however, issues with this approach, such as:

  1. You need to know up front whether you are going to run the app in a 32-bit or 64-bit process.
  2. Every project rebuild will place the assembly back to 'bin'.