This error indicates that there is a version mismatch between what is referenced by the assembly (<Y.Y.Y.Y>) and what the project is pointed towards (<Z.Z.Z.Z>). To correct this, you need to re-add the correct reference in Solution Explorer.
- Confirm that the DLL version <Y.Y.Y.Y> is present on your computer. Refer to NI .NET Assemblies Needed to Deploy Applications to determine the DLL location and for more information if your application includes a device driver API.
- Delete the <DLL Name> reference indicated in the error from Solution Explorer.
- Right-click References >> Add Reference...
- Select the correct assembly version under the .NET tab as indicated in <DLL Name Y.Y.Y.Y>.
For example, Assembly 'WIAlib, Version=126.96.36.199, Culture=neutral, PublicKeyToken=null'
'NationalInstruments.UI, Version=188.8.131.52, Culture=neutral, PublicKeyToken=dc6ad606294fc298'
which has a higher version than referenced assembly
'NationalInstruments.UI.WindowsForms, Version=184.108.40.2062, Culture=neutral, PublicKeyToken=dc6ad606294fc298'
indicates that the project is currently pointed towards an older version of NationalInstruments.UI. You need to remove NationalInstrument.UI from Solution Explorer and add reference National Instruments User Interface Library version 220.127.116.11 and National Instruments Windows Forms Controls version 18.104.22.168.