Indian LabVIEW Users Group (IndLUG)

cancel
Showing results for 
Search instead for 
Did you mean: 

System.MissingMethodException: Cannot create an instance of an interface while creating .net object

Solved!
Go to solution

While using zxing dll for reading barcode, i need to create an instance for barcode format list, but while doing so i m getting following error

 

"Error 1172 occurred at Invoke Node System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
Inner Exception: System.MissingMethodException: Cannot create an instance of an interface."

 

have attached the .dll and is there is any other way to create a .net object.

or any way to solve this problem?

 

Download All
0 Kudos
Message 1 of 3
(3,883 Views)

Hi @Rajhelboy 

 

You should use a .NET Constructor Node to create an instance.

 

image.png 

 

0 Kudos
Message 2 of 3
(3,851 Views)
Solution
Accepted by topic author Rajhelboy

Unfortunately sir, this will not work as the object is not initialized, i have tried that earlier, for now i have modified the dll to give output for an initialized Barcode Format object.

0 Kudos
Message 3 of 3
(3,788 Views)