LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cryptographic Errors while runing LabVIEW 711 app calling .NET 1.1 lib when .NET 2.0 is installed either

Hey There,

I'm getting curios crypto erros from the .NET fw when running my LabVIEW app
that calls a .NET 1.1 assembly. this only occours in labview programs when
..NET fw 2.0 is also installed on the target maschine.
The worst thing of all is that this assembly still works quite well when
called from
c# application.

It turned out that LabVIEW loads .NET 2.0 core assemblies however this is
the wrong
version for my assembly.

I tried to make labview and my app run with

<configuration>
<startup>
<requiredRuntime version="v1.1.4322"/>
</startup>
</configuration>

In the app config file as shown here:
http://detritus.blogs.com/lycangeek/2005/06/labview_and_net.html

but even thow labview and labview apps fail to get a hand on the right
framework version.

In the end I get CryptographicException thrown from
InteropServices.SafeHandle which does not even
exist in .NET 1.1 as shown here :
http://www.dotnetframework.de/ClassReference/System.Runtime.InteropServices/SafeHandle.aspx

Does anybody know how to make labview explicitely use .NET 1.1 fw even thow
2.0 is installed or
how to avoid these problems.

Thanks in Advance, Sebastian Dau


0 Kudos
Message 1 of 3
(2,819 Views)
In Addition:

this does not happen when running this app with labview 8.0 evaluation copy.


Will this be fixed with lv 711 patch in near future?

Greets, Sebastian Dau

"Sebastian Dau" <sebastian.dau@gmx.de> wrote in message
news:43d0bd25$0$28379$4d4ebb8e@read-nat.news.de.uu.net...
> Hey There,
>
> I'm getting curios crypto erros from the .NET fw when running my LabVIEW
> app
> that calls a .NET 1.1 assembly. this only occours in labview programs when
> .NET fw 2.0 is also installed on the target maschine.
> The worst thing of all is that this assembly still works quite well when
> called from
> c# application.
>
> It turned out that LabVIEW loads .NET 2.0 core assemblies however this is
> the wrong
> version for my assembly.
>
> I tried to make labview and my app run with
>
> <configuration>
> <startup>
> <requiredRuntime version="v1.1.4322"/>
> </startup>
> </configuration>
>
> In the app config file as shown here:
> http://detritus.blogs.com/lycangeek/2005/06/labview_and_net.html
>
> but even thow labview and labview apps fail to get a hand on the right
> framework version.
>
> In the end I get CryptographicException thrown from
> InteropServices.SafeHandle which does not even
> exist in .NET 1.1 as shown here :
> http://www.dotnetframework.de/ClassReference/System.Runtime.InteropServices/SafeHandle.aspx
>
> Does anybody know how to make labview explicitely use .NET 1.1 fw even
> thow 2.0 is installed or
> how to avoid these problems.
>
> Thanks in Advance, Sebastian Dau
>
>


0 Kudos
Message 2 of 3
(2,821 Views)
I'm not sure why you are seeing this only in LV 7.1.1. My first question is whether you have already downloaded the f2 patch for 7.1.1, which adds support for .NET 2.0. I know that you aren't wanting to use .NET 2.0, but I would suggest you make sure that is installed.
 
Second, since it works in 8.0, I figure this is already true, but just in case - is your config file with the requiredRuntime named LabVIEW.exe.config and is it in the same directory as LabVIEW?
 
Third, again you should have done this for 8.0, but make sure you have installed the SP1 service pack for .NET 1.1 (download from Microsoft).
0 Kudos
Message 3 of 3
(2,816 Views)