Connecting to a FTP Server
-
Hi All, How can i connect to a FTP server and down load the files from there in a C# application. We are using .NET frame work 1.1 and cant use any third party components. I have tried using Webclient class. Its working fine when i use a http URL But generating the following exception while connecting to a FTP server. System.NotSupportedException: The URI prefix is not recognized. Any help is appreciated. Thanks and Regards Mahe
-
Hi All, How can i connect to a FTP server and down load the files from there in a C# application. We are using .NET frame work 1.1 and cant use any third party components. I have tried using Webclient class. Its working fine when i use a http URL But generating the following exception while connecting to a FTP server. System.NotSupportedException: The URI prefix is not recognized. Any help is appreciated. Thanks and Regards Mahe
-
Hi All, How can i connect to a FTP server and down load the files from there in a C# application. We are using .NET frame work 1.1 and cant use any third party components. I have tried using Webclient class. Its working fine when i use a http URL But generating the following exception while connecting to a FTP server. System.NotSupportedException: The URI prefix is not recognized. Any help is appreciated. Thanks and Regards Mahe
The WebClient class doesn't work with FTP sites. .NET 1.1 does not have an FTP client built in. You'll either have to implement one yourself using sockets, or sue a third party component, or move up to Visual Studio .NET 2005 and .NET Framework 2.0. .NET 2.0 DOES have an FtpClient class built in.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007