# Error when integrating Free Wolfram Engine with .net application

Posted 1 month ago
250 Views
|
3 Replies
|
6 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
3 Replies
Sort By:
Posted 1 month ago
 I think you need to specify the location of 'wolfram.exe':https://reference.wolfram.com/language/NETLink/ref/net/Wolfram.NETLink.MathLinkFactory.CreateKernelLink_overload_3.htmlWith the Wolfram Engine in the default installation location it would be:"c:/program files/wolfram research/wolfram engine/12.0/wolfram.exe"(I didn't try this, but I think this is the direction to look into)
 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,