LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System.Reflection.TargetInvocationException: 调用的目标发生了异常,未能加载文件或程序集“Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed

my question is a little like this one ,but with some difference.

 

https://forums.ni.com/t5/LabVIEW/Calling-NET-DLLs-that-are-dependent-on-other-DLLs/m-p/3707834#M1043... 

 

I made a solution with VS2019, that solution contains two projects: an exe and a dotnet dll.

 

17.png

 

I installed Newtonsoft.Json 13.0.3 with them ,see as below:

 

18.png

 

if I use the exe to call the built dll's function ,everything works well.

 

if I copied the dll to my LabVIEW project file and call it by LabVIEW donet dll node ,it give me an error:

 

19.png

 

what is wrong ,why did LabVIEW tried to load Newtonsoft.Json 10.0.0.0? who is willing to use 10.0.0.0? what shall I do ?

0 Kudos
Message 1 of 1
(48 Views)