Problem
An error 1172 regarding dependencies occurs when attempting to build and/or run a LabVIEW executable from a LabVIEW project that utilizes the Automation1 LabVIEW Instrument Driver. The error may be similar to the following:
"Inner Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Aerotech.Automation1.Communication, Version=2.8.0.2722, Culture=neutral, PublicKeyToken=478e72719c32735e' or one of its dependencies. The system cannot find the file specified."
Note that the software is unable to find the listed dependency, and states the version of the dependency that it is looking for. The example above is looking for version 2.8.0 of Aerotech.Automation1.Communication.dll.
Solution
The Automation1 LabVIEW dlls are located at the following directory:
C:\Program Files (x86)\National Instruments\LabVIEW 2020\instr.lib\Aerotech Automation1
This directory should contain the following libraries:
- Aerotech.Automation1.Communication.dll
- Aerotech.Automation1.DotNet.dll
- Automation1Compiler.dll
- Automation1Compiler64.dll
These libraries must be built into the LabVIEW executable otherwise the error above may occur. Additionally, the version of the libraries must match the version of Automation1 that is installed on the PC the executable is attempting to run on. See the Instrument Driver for LabVIEW Guidelines page in the Automation1 help for instructions on upgrading the version of the LabVIEW Instrument Driver.