03-11-2014 06:11 AM
Hello,
I use an Net assembly (c#) for my CVI2013 application, i can run it (no problem for debug configuration), but if i try to run release configuration
=> Error
(Could not get CVI .NET error description. A .NET Framework version 1.1 or higher, or the CVI .NET modules may not be installed on your system. If not already present, install the required .NET Framework. Then repair the CVI Runtime Engine installer.)
The .NET is installed.
Could you help me ?
Thanks;
@++
Solved! Go to Solution.
03-12-2014 08:27 AM - edited 03-12-2014 08:28 AM
The error message is stating that LabWindows/CVI .NET components are not installed. Typically you run into this scenario if the .NET Framework was installed after LabWindows/CVI was installed.
Please repair BOTH LabWindows/CVI and LabWindows/CVI Run-Time Engine. To do this, go to Control Panel >> Programs and Features. Double-click the National Instruments Software item to open up the window depicted below. Select LabWindows/CVI and the Run-Time Engine to Repair.
03-12-2014 03:53 PM
Hello TBirkulosis,
Thank you for your help
I tried to correct the installation but I still same problem
But why the application OK only in debug configuration ?
Is there a tool to check the GAC for .Net assembly ?
Can you explain how labwindows manages Net assembly (install / GAC) ?
Thanks
03-12-2014 04:19 PM - edited 03-12-2014 04:29 PM
The CVI Manual: .NET Library Overview has a lot of useful information for Calling .NET Assebmlies in CVI:
First it reiterates:
Second, it says about Registering Assemblies:
"If you plan to use an assembly in LabWindows/CVI that is not located in the Global Assembly Cache (GAC) or in the current directory of the calling executable, then you must call CDotNetRegisterAssemblyPath to register the assembly. If you use an assembly that is located in the GAC or in the current directory of the calling executable, it is not necessary to callCDotNetRegisterAssemblyPath to use the assembly; the assembly is registered automatically."
03-13-2014 08:28 AM - edited 03-13-2014 08:29 AM
If you want to manually register your .NET Assembly, you can use the Microsoft GACutil.exe.
03-13-2014 02:19 PM
Hi TBirkulosis,
Thankyou for your time and your help.
Problem solved, I removed CVI and after reinstalling It's Okay
Thankyour for all information 😉 Merci beaucoup 🙂
@++