Problem parsing path
I'm getting further into C# and have been working with the Windows Application example from Chapter 16. I've downloaded the sample code and it works fine connecting to a MS FTP server I have running.
However, when I try to recreate the code myself (and I've checked and rechecked it), I'm generating an error related to the FTP request to get the directory/path data that leads to "Invalid URI: The hostname could not be parsed." It's pretty obvious what is happening, as the Status Strip clearly shows that once I connect to the FTP server, all sub-directories are separated with "\" instead of "/". So I see [f]tp://xxx.xxx.x.x\JeffsPic\MorePics when I know I should see [f]tp://xxx.xxx.x.x/JeffsPic/MorePics
I can view all the directories, but when I attempt to select a file, or upload one from a local location, I get the above message.
Again, the sample code works fine, so I know it is not the PC, my version of VS2008, or the FTP server.
Is there something else in this example other than the code that could generate this error? I have included System.IO and System.Net as required and I'm stumped, since my code appears absolutely identical to the sample
Thanks for any help you can offer.
|