Error when integrating Free Wolfram Engine with .net application

Posted 2 years ago
4730 Views
|
5 Replies
|
7 Total Likes
|
 Hi, I'm new to Wolfram. I downloaded yesterday Wolfram Engine 12.0 and tried to call it from my .net app in C# but I ended up with error where it asked me to choose a Mathlink program to launch. the error in my program raise at this point : IKernelLink ml = MathLinkFactory.CreateKernelLink();can someone advice on what is missing here. thanks in advance.ps : I using Wolfram.NETLink.dll and ml32i4.dll
5 Replies
Sort By:
Posted 5 months ago
 Don't look further, the answer is: The developer comments that the ml32i4.dll file is missing from the NETLink directory since version 12.1. Please find the dll file in link below. If you put an ml32i4.dll file in there, next to the existing ml64i4.dll file, things will work. https://amoeba.wolfram.com/index.php/s/R27S4gdL9WxcnnE
Posted 5 months ago
 Hi Arnoud, I have also the same problem as above: DllNotFoundException: Die DLL "ml32i4.dll": Das angegebene Modul wurde nicht gefunden. (Ausnahme von HRESULT: 0x8007007E) kann nicht geladen werden.Even after I have inserted the corresponding lines: string[] mlArgs = { "-linkmode", "launch", "-linkname", "c:/Programme/Wolfram Research/Mathematica/12.2/MathKernel.exe" }; IKernelLink ml = MathLinkFactory.CreateKernelLink(mlArgs);I'm using MATHEMATICA 12.2.0.0 Windows (64-bit) Visual Studio 2019 Version 16.7.5 and .NET 4.8Why the RunTime is looking for ml32i4.dll and not for ml64ia.dll?Kind regards
Posted 2 years ago
 Great to hear!
 Thanks a lot Arnoud. That was the error. I added the args : string[] mlArgs = { "-linkmode", "launch", "-linkname", "c:/program files/wolfram research/wolfram engine/12.0/wolfram.exe"}; KernelLink ml = MathLinkFactory.CreateKernelLink(mlArgs); to locate "worfram.exe" and it worked ! Now I can move further.Kr,