LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Method Not found Exception in VB2013 and LV Runtime 2016

Solved!
Go to solution

I'm using LV Runtime 2016 to access an exported assembly in VB2013.  When I call the function that uses the DLL, I get the following exception:

 

System.MissingMethodException was unhandled
  HResult=-2146233069
  Message=Method not found: 'IntPtr NationalInstruments.LabVIEW.Interop.DataMarshal.GetDataPointerWithTDRForArrayIn2(IntPtr, System.Array, Int32, Int32, Int32, IntPtr ByRef)'.
  Source=TestAssembly_alt

 

Am I doing something wrong with the Runtime?  I looked at the Interop Object in Object inspector but couldn't see the "DataMarshall.GetDataPointerWithTDRForArrayIn2" method...

 

0 Kudos
Message 1 of 3
(2,698 Views)
Solution
Accepted by Ben

Figured it out...  The Interop DLL version in the standard runtime installer is 1.0.0.0 and in the runtime installer with DAQmx it is 1.4.0.0...  The 1.0.0.0 version does not have that method...  Don't know why they aren't the same in each runtime installer

Message 2 of 3
(2,657 Views)

*DISREGARD* Figured out my solution

 

I've been trying to solve my problem the exact same way but using 1.3.0.0.

Was there any particular way you went about implementing this solution?

0 Kudos
Message 3 of 3
(1,353 Views)