473,499 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

connect to ftp-server

Hi,

how do I connect to an ftp-server using System.Net classes ?

I know how it works for http :

string myURL = "http://localhost/MySite/mypage.html";
WebRequest wReq = WebRequest.Create(myURL);

but if I try
string myURL = "ftp://ftp.clubic.com/"
WebRequest wReq = WebRequest.Create(myURL);

--> runtime error ??

how do i solve this ?

thnx
Christian

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 16 '05 #1
1 3429
Hi Christian:

FTP support isn't present in the framework till 2.0. Until then there
are quite a few free and open source FTP components for .NET if you
look around (quite a number just on gotdotnet.com).

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 28 Sep 2004 06:52:12 -0700, Chris C (cm****@yahoo.com) wrote:
Hi,

how do I connect to an ftp-server using System.Net classes ?

I know how it works for http :

string myURL = "http://localhost/MySite/mypage.html";
WebRequest wReq = WebRequest.Create(myURL);

but if I try
string myURL = "ftp://ftp.clubic.com/"
WebRequest wReq = WebRequest.Create(myURL);

--> runtime error ??

how do i solve this ?

thnx
Christian

************************************************* *********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...


Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4644
by: Kona | last post by:
Hello, Do I need db2connect to connect an ODBC client application (Windows) to a DB2 database on a Unix platform (SUN) ?
10
4343
by: Ed Stevens | last post by:
A tale of woe, and a question . . . Last week my boss said to me "we've installed DB2 Connect on this Solaris box. Make it work." Now, I've barely seen DB2 Connect on Windows, having fumbled...
1
1844
by: Tcs | last post by:
I've been running DB2 Connect - PE (v8.x, FP7a) on my XP, sp1 machine. I've been running the trial version (from ftp.software.ibm.com). It timed out last Thursday, which I found out on Friday...
3
4975
by: JW | last post by:
How can I connect to my online database? I have all the paths etc... I can't even think where to begin, what would be great would be a front end on my PC connected via ftp to my backend at my ISP....
1
1396
by: Mike Stephens | last post by:
I would like to write a service app, a simple application that runs in the background and does its thing, and not necessarily running on the local machine. This service app will not have any GUI...
3
2693
by: Greg Sabino Mullane | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 A bad link in the ftp source directory inspired me to check the rest of it out: * Main README file needs updating. The URL is given as: ...
3
5368
by: dinoo | last post by:
Hi, I need help here. I am converting an vb application to c#. The existing application connects to the mainframe server using FTP and downloads a file (dataset). Is it possible in .NET to...
3
6528
by: ABC | last post by:
How to write in C# to check FTP connect or not?
0
1176
by: Qui Sum | last post by:
I write ip/port scanner so users using search on our LAN know if the particular ftp is online or not. The class I write has the following structure: public class IPScanner { public...
8
1720
by: lawrence k | last post by:
I have to parse some FTP logs, which are full of several thousand lines like this: Thu Sep 4 11:39:04 2008 FTP command: Client "74.231.146.2", "TYPE A" Thu Sep 4 11:39:04 2008 FTP...
0
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6894
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.