MathGroup Archive 2011

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

Search the Archive

Re: NETLink problem on W2008 Server

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115565] Re: NETLink problem on W2008 Server
  • From: Chris Hill <chill at wolfram.com>
  • Date: Sat, 15 Jan 2011 04:43:01 -0500 (EST)

benek wrote:
>I have an ASP .NET Web application that calls some Mathematica 7 
>functions via NETLink. It works perfectly in the development 
>environment (Visual Studio 2010, using VB .NET for the 'code 
>behind'), but fails to open a link to the Kernel when I try to run 
>it on the Web Server (Windows 2008R2 Server). Our 'PC Support' 
>people spent more than a month trying to make it run on the server, 
>but with no success. I'd appreciate any help/suggestions.
>---
>Ben

NETLink in Mathematica 7 may be unable to locate the kernel without 
some assistance if you've never launched the front end on the machine 
using the web server user account.

If MathLinkFactory.CreateKernelLink() can't find the kernel, there 
are a couple different things to try:

- Manually specify the location of the kernel.  For example, if 
Mathematica is installed in the default location:
MathLinkFactory.CreateKernelLink("-linkmode launch -linkname 
""C:/Program Files/Wolfram Research/Mathematica/7.0/MathKernel.exe""")

OR

- While logged in to the server interactively as the web server user, 
start the front end on the server machine and then close the front 
end.  After doing this once it should never be required again on that 
machine, NETLink should be able to find the kernel from that point on 
without being told where it is.

The code that locates the kernel has been improved in the NETLink 
version included with Mathematica 8.

Chris Hill
Wolfram Research 



  • Prev by Date: Re: DesignerUnits 2011-01-08 for Mathematica 8, 7, 6
  • Next by Date: Re: Inverse function
  • Previous by thread: NETLink problem on W2008 Server
  • Next by thread: fill in harberger triangle