[Mono-bugs] [Bug 81032][Maj] New - System.Net.WebClient.DownloadStringAsync not working

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Mar 4 11:46:26 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mickael9 at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81032

--- shadow/81032	2007-03-04 11:46:26.000000000 -0500
+++ shadow/81032.tmp.5421	2007-03-04 11:46:26.000000000 -0500
@@ -0,0 +1,66 @@
+Bug#: 81032
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: Windows XP or Debian : Same result
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mickael9 at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Net.WebClient.DownloadStringAsync not working
+
+Description of Problem:
+System.Net.WebClient.DownloadStringAsync doesn't work.
+
+
+Actual Results:
+The DownloadStringCompleted event is never fired.
+
+How often does this happen? 
+Always
+
+Test:
+
+using System;
+using System.Net;
+using System.Windows.Forms;
+
+namespace Test
+{
+    class Program
+    {
+        [STAThread]
+        static void Main()
+        {
+            DownloadStringTest();
+            Application.Run();
+        }
+
+        static void DownloadStringTest()
+        {
+            WebClient objClient                = new WebClient();
+            objClient.DownloadStringCompleted += 
+objClient_DownloadStringCompleted;
+
+            objClient.DownloadStringAsync(new Uri("http://
+www.google.com"));
+
+            Console.WriteLine("Downloading ...");
+        }
+
+        static void objClient_DownloadStringCompleted(object objSender, 
+DownloadStringCompletedEventArgs e)
+        {
+            Console.WriteLine("DownloadStringCompleted; Result : {0}", 
+(e.Result.Length > 30 ? e.Result.Substring(0, 30) + "..." : e.Result));
+        }
+    }
+
+}


More information about the mono-bugs mailing list