[Mono-bugs] [Bug 80983][Nor] New - WebRequest.DefaultWebProxy can't be nulled

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Feb 28 07:01:29 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 pawel.sakowski at mindbreeze.com.

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

--- shadow/80983	2007-02-28 07:01:29.000000000 -0500
+++ shadow/80983.tmp.14902	2007-02-28 07:01:29.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 80983
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: pawel.sakowski at mindbreeze.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: WebRequest.DefaultWebProxy can't be nulled
+
+Description of Problem:
+It should be possible to set WebRequest.DefaultWebProxy explicitly to null.
+
+Steps to reproduce the problem:
+1. Compile and run the following:
+
+class X{static void Main(){
+System.Net.WebRequest.DefaultWebProxy = null;
+}}
+
+Actual Results:
+Unhandled Exception: System.ArgumentNullException: null IWebProxy not allowed.
+Parameter name: WebRequest.DefaultWebProxy
+  at System.Net.WebRequest.set_DefaultWebProxy (IWebProxy value) [0x00000]
+  at X.Main () [0x00000]
+
+Expected Results:
+a silent success
+
+How often does this happen? 
+100%
+
+Additional Information:
+mono 1.2.2.1
+MS Framework permits such explicit nulling.


More information about the mono-bugs mailing list