I have tried using the code in a both a console application and a website (using xsp2) and I have exactly the same result as ionsol.
It's on a Gentoo system using the 2.4 or 2.4-svn ebuilds on a amd64 system. If I try the same code in the vmware mono application image, it works like it should. At this point I'm pretty sure that the problem has something to do with the setup. ionsol, what is your setup, maybe we will find something in common ? On Sat, May 16, 2009 at 1:57 AM, Gonzalo Paniagua Javier < [email protected]> wrote: > I have just tried running this in a console program and inside xsp2 (ie, > in a web page) and everything works fine... > > On Fri, 2009-05-15 at 12:08 -0700, ionsol wrote: > > Here is a bit more information. > > > > If I run the following code in both a console application and a website > > (hosted with fastcgi-mono-server2), I get two different results. > > > > > > using (System.Net.WebClient client = new System.Net.WebClient()) > > { > > using (System.IO.Stream stream = > > client.OpenRead("http://www.google.com")) > > { > > using (System.IO.StreamReader sr = new > > System.IO.StreamReader(stream)) > > { > > Console.WriteLine(sr.ReadToEnd()); > > } > > } > > > > } >
_______________________________________________ Mono-aspnet-list mailing list [email protected] http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
