While connecting R from windows application on VS2015 framework 4.6, Its working fine. But when the same code i have added to webservice it throws an exception
System.NullReferenceException' occurred in RDotNet.dll but was not handled in user code
at the line
REngine engine = REngine.GetInstance();