[Mono-dev] Environment.GetEnvironmentVariable() not working in Linux ASP.NET app
Robert Jordan
robertj at gmx.net
Wed Nov 9 08:07:15 EST 2011
Hi Martin,
> (1) Configure system proxy settings and reboot machine (2) In
> terminal "echo $http_proxy" returns "http://http.proxy:8080/"; "echo
> $no_proxy" returns "localhost,127.0.0.0/8,*.local" (3) Created an
> ASP.NET project in MonoDevelop and entered the following code in
It's probably the desktop environment (GNOME, KDE, etc.) that
either keeps resetting this env var or does not include it at all.
> By the way, I have checked the user name of the mono process. It's
> the same as the currently logged in user and therefore it should
> have access to all environment variables. ASP.NET/Mono seems to have
> a problem reading the no_proxy variable while the http_proxy
> variable can be accessed as expected.
Your conclusion is wrong. See Oskar's explanation on how the
environment is inherited etc.
Robert
More information about the Mono-devel-list
mailing list