Unable to call CudafyTranslator.Cudafy from Web API

Mar 18, 2016 at 4:25 PM
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:

Image

Code was working perfectly in console application. Is there anyway to get rid of this problem?
Mar 18, 2016 at 5:07 PM
Edited Mar 18, 2016 at 5:08 PM
It seems your web host process (iis or iis express or some such) isn't able to find the cudafy.net.dll assembly. Therefore this isn't really a cudafy issue, but more of a matter on how your web project is configured.
There are usually several reasons for why a process can't find a dll.
Perhaps try to register the dll in the GAC? Or edit your web.config and add a reference to the dll's path? Maybe it's a matter of conflicting architecture (x86 vs x64), or .net versions?