[Mono-bugs] [Bug 58190][Maj] New - WebClient.OpenRead() failure with validNetworkCredential object

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 7 May 2004 06:53:59 -0400 (EDT)


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 apicetti@hotmail.com.

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

--- shadow/58190	2004-05-07 06:53:59.000000000 -0400
+++ shadow/58190.tmp.27654	2004-05-07 06:53:59.000000000 -0400
@@ -0,0 +1,61 @@
+Bug#: 58190
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Microsoft Windows 2000
+Status: NEW   
+Resolution: 
+Severity: 016 Two days
+Priority: Major
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: apicetti@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: WebClient.OpenRead() failure with validNetworkCredential object
+
+Description of Problem:
+Method WebClient.OpenRead() throws a System.Net.WebException : 401 - 
+Access Denied after setting the WebClient.Credentials property with a 
+NetworkCredential object with user, password and domain correctly defined
+
+Steps to reproduce the problem:
+1. Create a WebClient object with the default constructor and assign to 
+the Credentials property a NetworkCredential object :
+
+    WebClient cli = new WebClient();
+    // "<user>", "<pwd>", "<domain>" are valid
+    cli.Credentials = new NetworkCredential("<user>","<pwd>","<domain>");
+    
+2. Claa the OpenRead() method with a valid URI
+
+    Stream inStream = cli.OpenRead("<valid URI>");
+
+
+Actual Results:
+
+Unhandled Exception: System.Net.WebException: The remote server returned 
+an error: (401) Access Denied.
+in <0x00443> System.Net.HttpWebRequest:CheckFinalStatus
+(System.Net.WebAsyncResult)
+in <0x0005c> (wrapper remoting-invoke-with-check) 
+System.Net.HttpWebRequest:CheckFinalStatus (System.Net.WebAsyncResult)
+in <0x001b1> System.Net.HttpWebRequest:EndGetResponse (System.IAsyncResult)
+in <0x00071> System.Net.HttpWebRequest:GetResponse ()
+in <0x00035> System.Net.WebClient:OpenRead (string)
+in <0x0004f> (wrapper remoting-invoke-with-check) 
+System.Net.WebClient:OpenRead
+(string)
+in <0x00071> TestWeb:Main (string[])
+
+Expected Results:
+
+Stream object open
+
+How often does this happen? 
+
+Always
+
+Additional Information: