[Mono-aspnet-list] Problem using a web service.

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Sat May 16 01:57:14 EDT 2009


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());
>                   }
>             }
> 
>          }
[...]



More information about the Mono-aspnet-list mailing list