[Mono-bugs] [Bug 350622] New: WebClient.OpenWriteAsync(Uri) does not set method, throws an exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 24 14:33:55 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=350622


           Summary: WebClient.OpenWriteAsync(Uri) does not set method,
                    throws an exception
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: jhurliman at metaverseindustries.com
         QAContact: mono-bugs at ximian.com
          Found By: ---


The WebClient.OpenWriteAsync() overload that only takes a Uri parameter is
supposed to set the HTTP method automatically. "This method uses the STOR
command to upload an FTP resource. For an HTTP resource, the POST method is
used." However it does not get set, and the following exception occurs:

ERROR: System.ArgumentNullException: Argument cannot be null.
Parameter name: method
  at System.Net.WebClient.OpenWriteAsync (System.Uri address, System.String
method, System.Object userToken) [0x00000] 
  at System.Net.WebClient.OpenWriteAsync (System.Uri address, System.String
method) [0x00000] 
  at System.Net.WebClient.OpenWriteAsync (System.Uri address) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.Net.WebClient:OpenWriteAsync
(System.Uri)
  at libsecondlife.Capabilities.EventQueueClient.Start () [0x00000]


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list