[Mono-dev] Environment.GetEnvironmentVariable() not working in Linux ASP.NET app

H . test051102 at hotmail.com
Thu Nov 3 09:12:09 EDT 2011

Hi Robert,

thanks for your hints.

The link sent describes how environment variables can be set up in Ubuntu. Of course, nobody would try to manually set up environment variables when trying to configure proxies. This is done by using System>Settings>Network Proxy. After that, Ubuntu sets up the necessary environment variables. In case of the no_proxy environment variable this can be tested by issuing "echo $no_proxy" on the command line.

My question is not about setting up environment variables. I need to retrieve the content of $no_proxy via C# in an ASP.NET app.

> To: mono-devel-list at lists.ximian.com
> From: robertj at gmx.net
> Date: Thu, 3 Nov 2011 13:58:50 +0100
> Subject: Re: [Mono-dev] Environment.GetEnvironmentVariable() not working in Linux ASP.NET app
> On 03.11.2011 13:51, H . wrote:
> >
> > Environment.GetEnvironmentVariable("no_proxy") not working in Linux
> > ASP.NET app
> >
> > After configuring proxies in Ubuntu, the environment variable
> > no_proxy contains the list of proxies to bypass. Using
> > Environment.GetEnvironmentVariable("no_proxy") we can retrieve the
> > content of this environment variable as a string. This is working
> > fine in standard C# applications.
> See 
> https://help.ubuntu.com/community/EnvironmentVariables#System-wide_environment_variables
> Robert
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20111103/11d589a9/attachment.html 

More information about the Mono-devel-list mailing list