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: Your IIS application runs under an application pool user. Since R (typically) installs packages under the user account, you'd need to make sure that you've installed the RODBC package as that user. When you installed via the console app, you probably run under the local user, ie: the logged in user - you! To verify that RODBC is installed, you can execute the R code in your application for listing packages, "installed.packages()" and examine the console device output. To see the paths that R is searching, you can execute the R code ".libPaths()" and examine the console device output. I think you'll be able to track down the issue with those command.
```
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: Your IIS application runs under an application pool user. Since R (typically) installs packages under the user account, you'd need to make sure that you've installed the RODBC package as that user. When you installed via the console app, you probably run under the local user, ie: the logged in user - you! To verify that RODBC is installed, you can execute the R code in your application for listing packages, "installed.packages()" and examine the console device output. To see the paths that R is searching, you can execute the R code ".libPaths()" and examine the console device output. I think you'll be able to track down the issue with those command.