LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error 1172 while calling c# dll in LabVIEW using .NET API

I build c# project and exported all dlls. When I am trying to call it from LabVIEW using .net API, I am getting error as below. Is there any specific setting required while building project ?

 

 

0 Kudos
Message 1 of 4
(1,087 Views)

Error 1172 generally occurs when there is an exception thrown inside your .NET assembly.

There should be a detailed explanation in the error string that may help you understand what goes wrong inside your dll.

0 Kudos
Message 2 of 4
(1,047 Views)

Hi, 

I've the same problem and nothing wrong on my dll cause I use it on a c# project without any problem.

I've the following message:

Nœud de méthode System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel.

0 Kudos
Message 3 of 4
(961 Views)

https://forums.ni.com/t5/Discussions-au-sujet-de-NI/error-1172-appel-d-une-fonction-dll/td-p/3801612

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 4
(957 Views)