.NET Controller Wizard Returns Global Assembly Cache Error
Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 8.5
Primary Software Fixed Version: N/A
Secondary Software: LabWindows/CVI Development Systems>>Base Package
Problem: I am using LabWindows/CVI 8.0 and are trying to use the .NET Controller Wizard. However, when I select
Tools » Create .NET Controller, I receive the error:
"Could not get assemblies from Global Assembly Cache"
What's going on and how can I fix these errors?
Solution:
LabWindows/CVI 8.0 was released before the final version of the .NET Framework 2.0 was released. During this time period, various changes occured with the .NET Framework 2.0. In particular, this error is occurring because .NET 2.0 is missing a component (mscorcfg) that was installed in .NET 1.x.
There are two ways to correct this problem:
- Download and install the .NET Framework 2.0 SDK. This solution will let you generate wrappers for 1.x and 2.0 assemblies.
- Create a new application configuration file: By default, LabWindows/CVI automatically loads the latest installed version of the .NET Common Language Runtime (CLR). However, you can force LabWindows/CVI to load a specific version of the .NET CLR.
To force LabWindows/CVI to load a specific version of the .NET CLR, open a text editor and create a configuration file with the following syntax:
<configuration>
<startup>
<requiredRuntime version="v1.1.4322"/>
</startup>
</configuration>
Save this configuration file as cvi.exe.config in the CVI\ directory.
After saving the file, restart LabWindows/CVI. This solution will not allow you generate wrappers for 2.0 assemblies.
Note This issue has been fixed for LabWindows/CVI 8.0.1.
Related Links: MSDN: Download .NET Framework 2.0 Software Development Kit (SDK) (x86)
Attachments:
Report Date: 02/13/2006
Last Updated: 11/20/2007
Document ID: 3UCLMQK7