HttpWebRequest always throws time out exception then run in mono 2.10 under Windows Vista SP1 32bit. The same request completes successfully then run under Microsoft .Net in the same machine. Here follows code:
string url = "http://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false";
try
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
Console.WriteLine(request.GetResponse());
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
update:
version of mono:
c:\Program Files\Mono-2.10\bin>mono -V
Mono JIT compiler version 2.10 (tarball)
Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: normal
Notification: Thread + polling
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
I cannot reproduce with Mono 2.10 on Windows 7 x64.
c:\Users\Owner\Development\monobugs>C:\Mono-2.10\bin\mono.exe -V
Mono JIT compiler version 2.10 (tarball)
Copyright (C) 2002-2011 Novell, Inc and Contributors. http://www.mono-project.com
TLS: normal
SIGSEGV: normal
Notification: Thread + polling
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
c:\Users\Owner\Development\monobugs>C:\Mono-2.10\bin\mono.exe http.exe
System.Net.HttpWebResponse