LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

[CVI 2013] Error load .Net assembly in release configuration / OK in debug configuration

Solved!
Go to solution

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;

@++

0 Kudos
Message 1 of 6
(5,277 Views)
Solution
Accepted by topic author Tanite

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.

 

Repair LabWindowsCVI.PNG

 

Taylor B.
National Instruments
0 Kudos
Message 2 of 6
(5,243 Views)

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

 

0 Kudos
Message 3 of 6
(5,233 Views)

The CVI Manual: .NET Library Overview has a lot of useful information for Calling .NET Assebmlies in CVI:

 

First it reiterates:

  • LabWindows/CVI supports Microsoft .NET Framework 1.1 Service Pack 1 or later. To create a LabWindows/CVI wrapper for a .NET assembly and call it, your computer must have a version of the .NET Framework that is appropriate for your assembly. You can download the .NET Framework from the Microsoft Web site.
  • If you install the .NET Framework after you install LabWindows/CVI, you must then reinstall LabWindows/CVI or repair the existing LabWindows/CVI installation.

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."

 

Taylor B.
National Instruments
Message 4 of 6
(5,230 Views)

If you want to manually register your .NET Assembly, you can use the Microsoft GACutil.exe.

Taylor B.
National Instruments
Message 5 of 6
(5,208 Views)

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 🙂

 

@++

0 Kudos
Message 6 of 6
(5,201 Views)