[Mono-bugs] [Bug 69001][Nor] Changed - WebRequest exceptions

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 2 Nov 2004 13:51:59 -0500 (EST)

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 gonzalo@ximian.com.


--- shadow/69001	2004-11-02 09:23:13.000000000 -0500
+++ shadow/69001.tmp.21655	2004-11-02 13:51:59.000000000 -0500
@@ -76,6 +76,24 @@
 ------- Additional Comments From gonzalo@ximian.com  2004-11-02 02:02 -------
 It fails on CVS 1-0 and HEAD.
 ------- Additional Comments From vargaz@gmail.com  2004-11-02 09:23 -------
 Could somebody attach a complete test case ?
+------- Additional Comments From gonzalo@ximian.com  2004-11-02 13:51 -------
+Xavier sent me this comment:
+Ok, it seems I made a mistake in the sample code, that code never
+throws exceptions, they are thrown when EndGetResponse is called. So
+if I move around the above try/catch pair around the EndGetResponse
+call I can catch the exception (in Mono). So the problem here is
+different, if you don't catch the exception though, Mono keeps running
+the code without throwing a network error exception on the console,
+whilst .NET does, although if you catch it, it works, so I'm not sure
+what the problem here is. Sorry for the bad sample!
+----end of the comment----
+However, in my test I called EndGetResponse() and the exception wasn't
+thrown anyway. I'm attaching the test case i used and will try to get
+a simpler one that doesn't require System.Net code.