[Mono-bugs] [Bug 327005] New: FtpWebRequest listRequest is null

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Sep 20 20:14:45 EDT 2007


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

           Summary: FtpWebRequest listRequest is null
           Product: Mono: Runtime
           Version: unspecified
          Platform: i686
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: io-layer
        AssignedTo: dick at novell.com
        ReportedBy: landonmkelsey at hotmail.com
         QAContact: mono-bugs at ximian.com
          Found By: Development


Description of Problem:
        public void ListFiles(string listUrlIn)

        {

            string listUrl = listUrlIn + serverDirectoryTextBox.Text;

            PrintMessage("listUrlIn = " + listUrlIn + "|" + "listUrl = " +
listUrl);

            StreamReader reader = null;

            try

            {

                FtpWebRequest listRequest =

                    (FtpWebRequest)WebRequest.Create(listUrl);
                    PrintMessage("here");
                    PrintMessage(listRequest.RequestUri.ToString());
                   if (listRequest.ContentLength == 0)
                   {
                                listBoxErrors.Items.Add("listRequest is null =
"+listRequest.RequestUri.ToString());
                                return;
                   }

Steps to reproduce the problem:
1. execute the code with 
listUrlIn = ftp://localhost//root/|listUrl = ftp://localhost//root//
2. 


Actual Results:FtpWebRequest listRequest is null


Expected Results:not null


How often does this happen? whenever I use Fedora 7 mono 


Additional Information: works under Visual Studio 2005 .NET 2.0


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


More information about the mono-bugs mailing list