Bonjour,
J'essaie de creer un repertoire ftp via VB.NET , mais j'ai cette exception qui remonte tous le temps :
Voici le script:
Voici l'exception:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 Dim ftpReq As System.Net.FtpWebRequest = Nothing Dim ftpRes As System.Net.FtpWebResponse = Nothing Try MsgBox(dir_name) ftpReq = CType(System.Net.WebRequest.Create(dir_name), System.Net.FtpWebRequest) ftpReq.Credentials = New System.Net.NetworkCredential(user,pass) ftpReq.Method = System.Net.WebRequestMethods.Ftp.MakeDirectory ftpReq.KeepAlive = False ftpRes = CType(ftpReq.GetResponse(), System.Net.FtpWebResponse) ftpRes.Close() Catch ex As Exception MsgBox(ex.ToString) End Try
Je comprends pourquoi ? aidez moi ....System.InvalidOperationException : La commande FTP demandée n'est pas prise en charge lors de l'utilisation du proxy HTTP
à System.Net.FtpWebRequest.GetHttpWebRequest()
à System.Net.FtpWebRequest.GetResponse()
à ScriptTask......ScriptMain.Main()
Merci beaucoup !!!!!!!!!!!!!!!
Partager