Could not found "predict" function

Jun 11, 2016 at 11:42 AM
I have a simple call in C#:
var predict = rengine.Evaluate("predict").AsFunction();

When I use this from a console application it's working fine, but when I call it from an Web.Api service I get the error " object predict not found". I need to do something special when I use R.NET in a Web.Api?