LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

can't create .NET controller

Hy everybody,

I want to create a .NET controller from OneWireAPI.NET.dll
This DLL comes from http://files.dalsemi.com/auto_id/licensed/install_1_wire_drivers_v400.msi  from Dallas / Maxim

I registered this DLL with :
- regasm OneWireAPI.NET.dll
and :
- gacutil -i OneWireAPI.NET.dll

So it can be found in "Assemblies in Global Assembly Cache" of the "Create LabWindows/CVI .NET Controller" window
when I validate to create my instrument, the following error occurs :

Error occured while generating .NET controller code. CVI could not get .NET identifiers for redefinition.

What could be the problem ?

Best regards
0 Kudos
Message 1 of 3
(3,745 Views)
HI manudenis,

I was able to create a CVI wrapper for the .NET assembly just fine on several different computers with several different versions of CVI.  According to readme, it states you must have both the .NET Framework and the Visual J# .NET Redistributable installed. Do you meet both those requirement?

What if you don't install to the GAC? Can you simply open the .NET Controller Wizard and browse to the .NET assembly? Does that create the wrapper fine?

What version of the .NET Framework do you have installed (1.1, 2.0, 3.0)? One guess is that maybe the assemblies are using features found in a later version of .NET than what you have installed? For example, if the assembly was using generics which is a .NET 2.0 feature and you just had 1.1, then you will run into issues.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 3
(3,731 Views)
Hi,

I have already installed :
- Visual J# .NET Redistributable Package 1.1
and
- .NET Framework 2.0 (over 1.1 & 1.1 Hotfix)

If I uninstall the DLL with the Global Assembly Cache Utility,
it doesn't appear anymore in the .NET Controller Wizard.

Well, I've reinstalled the DLL.
Then I discovered that Visual J# .NET Redistributable Package 2.0 exists !

I was unable to find which J# version this OneWireAPI.NET.dll uses.

After this installation, EVERYTHING WORKED FINE !

The .NET controller wizard generates a file with 237400 lines
Now I'm working with this file.

Thank you for your support Jonathan.

Best Regards

0 Kudos
Message 3 of 3
(3,699 Views)