01-27-2009 10:58 PM
I am creating an application in LV 8.5 that runs on .net 2.0 for most of the required .net assemblies. My problem is that one of the .net assemblies has been updated with my loading of .net 3.5. When I deploy the built application to a target computer that only has .net 2.0 the selected assembly will not work. When I try and select the .net 2.0 assembly version in LabView, it is automatically updated to a later assembly version. Is there a way in LabView to force the loading a specific .net assembly verfsion? Or will I have to take care of this with Microsoft CLR?
Thanks
Matt
01-28-2009 09:10 AM
You can try to use the standard .NET mechanism to specify a required runtime. To do this create a LabVIEW.exe.config file in the same directory where the LabVIEW executable is (yes, it has to be in the same folder as the executable). In it place this text:
<configuration>
<startup>
<requiredRuntime version="v2.0.50727" />
</startup>
</configuration>
Where the version number matches whatever version number you have.
Note: The above is for when you're running the VI in the development environment, since the application that's running then is LabVIEW. For a built application you would need to have the .config file in the folder with the executable, and you need to replace "LabVIEW" with the actual name of your application.