Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
ASP.NET 1.0/1.1
[ASP.NET 2.0] Creazione client ftp
giovedì 16 febbraio 2006 - 11.40
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
D79
Profilo
| Junior Member
67
messaggi | Data Invio:
gio 16 feb 2006 - 11:40
Ho la necessità di inviare dei file ad uns erver remoto tramite ftp.
Qualcuno saprebbe indirizzarmi verso la via giusta?... ho cercato ma nonmi sembra che esistano già delle classi specifiche per la gestione dell'ftp...
totti240282
Profilo
| Guru
1.574
messaggi | Data Invio:
gio 16 feb 2006 - 11:54
sulla msdn c'è un ottimo esempio lo usato tempo fa...veramente ottimo quello che mancava all framework 1.1.
Fai una ricerca con ftpwebrequest.
C'è solo un capitano !!!!!!
D79
Profilo
| Junior Member
67
messaggi | Data Invio:
gio 16 feb 2006 - 12:29
ecco la mia porzione di codice, per adesso vorrei solo la lista dei documenti nel server ftp:
Dim URI As String = strFtpHost
Dim ftpClient As System.Net.FtpWebRequest = CType(FtpWebRequest.Create(URI), FtpWebRequest)
ftpClient.Credentials = New NetworkCredential(strFtpUser, strFtpPwd)
ftpClient.Proxy = Nothing
ftpClient.UseBinary = False
ftpClient.UsePassive = True
ftpClient.Method = WebRequestMethods.Ftp.ListDirectoryDetails
Dim response As FtpWebResponse = CType(ftpClient.GetResponse(), FtpWebResponse)
all'ultima riga mi da' un'eccezione:
The server returned an address in response to the PASV command that is different than the address to which the FTP connection was made.
----
il mio sito:
http://it.geocities.com/chuck_dust/
totti240282
Profilo
| Guru
1.574
messaggi | Data Invio:
gio 16 feb 2006 - 15:32
forse devi impostare l'invio passivo o viceversa ???
C'è solo un capitano !!!!!!
totti240282
Profilo
| Guru
1.574
messaggi | Data Invio:
gio 16 feb 2006 - 15:33
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=235791&SiteID=1
C'è solo un capitano !!!!!!
D79
Profilo
| Junior Member
67
messaggi | Data Invio:
gio 16 feb 2006 - 16:13
si infatti ho provato così ma il server ftp dà questo errore
425 Can't open data connection.
----
il mio sito:
http://it.geocities.com/chuck_dust/
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !