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

New Post: Error in deployed asp.net application

$
0
0
stefano22 wrote:
Guys today I spent a bit of time and I think I've figured out my problem.
I realized that the web application is unable to dynamically set the environment variable PATH when runs under iis by using the following statement:
BinPath = GetWinRegistryPath();
var envPath = Environment.GetEnvironmentVariable("PATH");
// this statement not work under iis
Environment.SetEnvironmentVariable("PATH", envPath + Path.PathSeparator + BinPath);
To test this I added manually (from Control Panel/System) the r executable folder to the environment variable and now works fine.
Setting the environment variable works perfectly when you use visual studio development server (cassini) during application development.

I take this opportunity to ask please if there is anyone who knows how to dynamically set the system variable correctly.

Thank you all.

stefano
Stefano,
I am currently fighting this same issue. Could you please elaborate on what exactly you did to resolve the issue?

I went into Environment Variables and added 2 entries:
  1. RHOME = C:\Program Files\R\R-3.1.1
  2. RPATH = "C:\Program Files\R\R-3.1.1\bin\i386
But this didn't seem to make any difference when testing locally on IISExpress (in Visual Studio 2013).

Any information that you can provide would be greatly appreciated.

Thanks,

sehunley

Viewing all articles
Browse latest Browse all 1634

Trending Articles



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