01-10-2019 11:11 PM - edited 01-10-2019 11:15 PM
Hello,
I am trying to open a VI that was supplied with a spectrometer that was purchased. As soon as I open the VI I a warning message appears - Expected Assembly "ARCsoft.ARCspectroMd, Version=1.4.3372.25547, Culture=neutral, PublicKeyToken=null", but found "ARCsoft.ARCspectroMd, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null." I have tried to create a configuaration file for this .dll file by creating a new text document named ARCsoft.ARCspectroMd.dll.config. With the contents as
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="ARCsoft.ARCspectroMd"
publicKeyToken="18cbae0f9955702a"
culture="Neutral" />
<bindingRedirect oldVersion="1.4.3372.25547" newVersion="2.1.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
I feel like I am making this configuration file incorrectly because LabVIEW is entirely ignoring it. I placed it in the same directory as the VI and the .dll file. Thanks for any help in advance!!!
Solved! Go to Solution.
01-13-2019 02:41 PM
.NET config files for the CLR are for the executable that hosts the CLR, not individual assemblies. So if you are running the VI in the development environment then you need to change this to LabVIEW.exe.config and place it in the LabVIEW folder in Program Files.
This can be a bit of a maintenance head-ache so other options are: