Unable to call CudafyTranslator.Cudafy from Web API

I’m trying to use CUDAfy.NET in a web application which will be further called from a web form.
When it tries to initiate a CudafyModule it gives the error as shown in pic below:


Code was working perfectly in console application. Is there anyway to get rid of this problem?