February 2007

Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28      
Blog powered by TypePad

« LOTR and lots of meat | Main | Second Chance »

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83424ed4953ef00d8349ac07369e2

Listed below are links to weblogs that reference LabVIEW and .NET 2.0:

Comments

Just to add to your post about forcing the version of the CLR - if you have both VS 2003 and VS 2005 installed, if you want to debug any VS 2003 CLR 1.1 apps that are called via COM Interop from a non .NET executable from VS 2003, you HAVE to have a .config file to force the CLR. Otherwise what happens is that when the interop layer kicks in, the subsystem automatically loads CLR 2.0, which VS 2003 can't cope with - it may crash or it may just shut the app down and drop back to the IDE! The .config file has to be in the same directory as the non .NET exe and has to be named the same way as the exe, e.g. hostprocess.exe.config.

I could not make my LabVIEW 7.1.1 apps run with .NET 1.1 exclusively.
When I try to debug a .NET assembly called by LabVIEW, I can see in the output that labview loads .NET 2.0 core libs.
In adition it causes my cryptography assembly to throw an exeption out of an object that does not even exist in .NET 1.1 but in 2.0.

Any suggestions on how to overcome this problems?

I just retested it on 7.1.1f2 and the config file listed worked as expected. Are you talking about a built EXE from LV, or running the VI in the LV IDE? If this is a built application, remember that you need to change the name of the file to be your EXE (such as myapp.exe.config).

Brian wrote that "Unfortunately, as some people have discovered, LabVIEW 7 is not compatible with .NET 2.0. This has to do with the fact that Microsoft has completely redesigned the way the framework is installed (specifically the GAC) and this has broken the code that provides you with the list of installed assemblies. There is currently no workaround for this problem other than to not install .NET 2.0."


I have a story.

A company came to us. They do some LV work, but mostly they develop in other languages and they wanted us to do some integration between their .Net DLL and their current LV program. I started reading the requirements and immediately said "You have LV 7.0 and .Net 2.0. Did you test this? I seem to remember reading that LV 7 does not support .Net 2.0". They said that they tested it and it works and so we moved forward.

So I started working on this and, lo and behold, I get 1172 errors. I looked around and found that I need to register the DLLs with LV and that the VI needs to be in the same folder as the DLL. In short, I did that with the DLL and I registered the .Net 2.0 System.Data assembly as well (which I used to cast to a DataTable object) and it seems to work fine.

So, what gives? I have zero .Net experience so far, but that definitely seems to me to be working (Even the system.data assembly which is located in the windows directory).
What are the issues in using .Net 2.0 with LV 7.0?

That is partly my fault for saying LV 7, using the general term for 7.x. The 7.1 release specifically hangs when you drop a constructor node or do any other action that brings up a list of assemblies.

In 7.0, you don't get the hang, but we aren't reporting the version information correctly (notice that you don't see System(2.0.0.0) in the list). In general, 7.0 seems to work with .NET 2.0, but I haven't done extensive testing with it.

Sorry for the confusion.

I have LabView 7.1 installed on .net 2.0.
I would like to recieve the Patch for working with 2.0.
Thanks
Raveendra

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment