473,626 Members | 3,325 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.Crea te(myURL);

but if I try
string myURL = "ftp://ftp.clubic.com/"
WebRequest wReq = WebRequest.Crea te(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 3440
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.c om) 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.Crea te(myURL);

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

--> runtime error ??

how do i solve this ?

thnx
Christian

************** *************** *************** *************** ***********
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensiv e, 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
4652
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
4365
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 thru one install and config, with a lot of handholding from IBM Support. I'm comfortable in unix but have never dealt with DB2 Connect there. (my main job is as an Oracle DBA, and most of my db's are on Solaris or AIX) I've found the install...
1
1862
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 morning. So I tried to reinstall it. While reinstalling it has worked in the past, it didn't work *this* time. I thought perhaps it was the CD I was using. So I tried another. And had the same result. Then I dug up the "original" IBM CD, instead...
3
4986
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. Or is this just ridiculous and impossible?? Jon
1
1410
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 output. I then need to write the monitor GUI. This will "connect" to the service app and display all the output information. Eg.. Service App. This could be a simple application that checks a a FTP service and downloads new files if available....
3
2708
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: http:/www.postgreSQL.org
3
5386
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 avoid FTP and use any providers to connect to the mainframe server and download a file. I would appreciate if someone can give a reference to a link or code.
3
6536
by: ABC | last post by:
How to write in C# to check FTP connect or not?
0
1197
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 IPScanner() { } private void connect(object data)
8
1727
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 response: Client "74.231.146.2", "200 Switching to ASCII mode." Thu Sep 4 11:39:07 2008 FTP command: Client "74.231.146.2", "PWD" Thu Sep 4 11:39:07 2008 FTP response: Client
0
8705
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8638
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4092
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2626
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 we have to send another system
1
1811
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.