Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

Commented Unassigned: Load a R Library in MVC app [157]

$
0
0
Hi all, i'm going mad due to a fail library load into a MVC app.

```
REngine.SetEnvironmentVariables();
REngine engine = REngine.GetInstance();

engine.Initialize();

engine.Evaluate(".libPaths('C:/Progetti Visual Studio/tool/tool/Content/R Library/')");
engine.Evaluate("library (RODBC)"); //ERROR HERE


```
Every time it reads that row an error occur:
__Error: package or namespace load failed for 'RODBC'__

Any solution?

I'm pretty new of mvc...

thanks in advance


PS : I've tryed to follow the istructions on [this discussion](https://rdotnet.codeplex.com/discussions/572547) ... but i could not understand how to do what this guy said
> You have a very common problem with R running under IIS. If you add 'C:\Program Files\R\R-3.1.2\bin\i386' (or x64 if you are doing 64 bit) to your system path and restart Visual Studio or IIS then the RODBC package will load correctly. This is only for running under IIS and has to do with the DLL search paths under IIS while trying to find R's subordinate DLLs.
>



Comments: Here's some help on how to set the path: http://www.computerhope.com/issues/ch000549.htm

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>