MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Using .NET/Link on 64-bit Windows Server 2008

  • To: mathgroup at
  • Subject: [mg124979] Using .NET/Link on 64-bit Windows Server 2008
  • From: Joe Eddy <jceddy at>
  • Date: Wed, 15 Feb 2012 04:44:33 -0500 (EST)
  • Delivered-to:

I am having a problem using Wolfram .NET/Link on a 64-bit Windows
Server 2008 system.  I have an "AnyCPU" .NET program that uses .NET/
Link to start up and interface with the Math Kernel.  It looks
like .NET/Link itself is working, but it is failing to start up a
kernel.  Here is the exception:

System.Exception: System.TypeInitializationException: The type
initializer for 'Wolfram.NETLink.Internal.NativeLink' threw an
---> System.BadImageFormatException: An attempt was made to load a
program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at Wolfram.NETLink.Internal.WindowsMathLinkAPIProvider.MLBegin(IntPtr
at Wolfram.NETLink.Internal.NativeLink..cctor()
--- End of inner exception stack trace ---
at Wolfram.NETLink.Internal.NativeLink..ctor(String cmdLine)
at Wolfram.NETLink.MathKernel.Connect()
at Wolfram.NETLink.MathKernel.Compute()
at XXX.ExecuteCommand(InputValue ivValue, Int32 iKernelToUse)
at XXX.MathematicaSyntaxCheck(String strExpression)
at XXX.InvokeMethod(String methodName, String xmlMessage, Byte[]

We are running Mathematica 6.0, and I did notice that Mathematica is
installed in the "Program Files (x86)" folder.  My assumption is
that .NET/Link is running in 64-bit mode and attempting to start a 32-
bit Kernel.  Is there something I need to ask my IT department to
change to get this working properly?

  • Prev by Date: Re: Running MathematicaScript in Mac Terminal
  • Next by Date: Re: Running MathematicaScript in Mac Terminal
  • Previous by thread: Re: question about NIntegrate
  • Next by thread: Re: Using .NET/Link on 64-bit Windows Server 2008