LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL loading problem in LV8.5

HI!
I have a problem with loading DLL in LV8.5 that are build in Visual studio 2008.
I tried this on on a computer with new installation of Windows XP and LV8.5. I have build fist DLL in VS 2005 and second DLL in VS 2008 from the same source code.
Then I used Call Library Function Node to load DLLs. Load of first DLL was successfully and load of second DLL returned an error (This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem).
But both DLLs are loaded successfully on a computer with VS2008 installation.

Do I need to install some additional software that comes with VS2008?

Thanks!
0 Kudos
Message 1 of 18
(4,136 Views)

Hi, Andrej,

Try to copy *.dll.*.manifest files (if they was created by VS2008)  into the same folder where dll located. Probably it may be helpful.

Andrey.

 

Message 2 of 18
(4,135 Views)
Hi, Andrey,
I have tryed your advice, but it does not make any difference.

Andrej
0 Kudos
Message 3 of 18
(4,129 Views)
Hi Andrej,
 
Visual Studio 2008 uses .NET Framework 3.5 which is not supported in LabVIEW. 
Jennifer R.
National Instruments
Applications Engineer
Message 4 of 18
(4,114 Views)
Hi Jennifer,
I have installed .NET Framework 3.5 and it is working now :).

Thanks a lot,
andrej
Message 5 of 18
(4,107 Views)

I have the same problem when I try to load a DLL that someone sent me.  "Error loading dll.  This application has failed to start because the application configuration is incorrect.  Reinstalling the application may fix this problem."  I was told they were able to load it on their machine but I cannot. 

 

How exactly did you solve this problem?

0 Kudos
Message 6 of 18
(3,850 Views)

Hi Danny,

 

download .NET Framework 3.5, it's free, install it, then run your application again.

0 Kudos
Message 7 of 18
(3,846 Views)

Ok.  Yes I tried that and still it does not load the dll.

 

I am using LabVIEW 8.2, by the way, if that makes a difference.  Any other suggestions?

0 Kudos
Message 8 of 18
(3,843 Views)

DannyC wrote:

I was told they were able to load it on their machine but I cannot. 


Who is "they" and what is "their machine"? Does the assembly call another assembly?

 

There's been anectodal mention of .NET 3.5 working with LabVIEW 8.2, but I don't think I've ever heard of an official "Yeah, it's supported" from NI.

Message 9 of 18
(3,835 Views)
I work with LV 8.5, but I will try it with LV 8.2 in the morning and let you know what happens. You could also attach dll here and I will try to load it.
0 Kudos
Message 10 of 18
(3,826 Views)