[Mono-aspnet-list] Problem using a web service.
Sébastien Morin
smsisko at gmail.com
Sat May 16 07:40:47 EDT 2009
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 <
gonzalo.mono at gmail.com> 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());
> > }
> > }
> >
> > }
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20090516/32e45e7a/attachment-0001.html
More information about the Mono-aspnet-list
mailing list