我在主机上用iis搭建了ftp,客户端用了filezilla连接,能正常连接,但是读取目录列表时经常失败。 然后我有一段代码Dim pvw As WinForm.PictureViewer = e.Form.Controls("PictureViewer1") pvw.BindingField ="质量反馈单列表_table1.图片描述"
Dim ftp As new ftpclient
ftp.Host=“192.168.x.x”
ftp.Port= 21
ftp.Account = "ftpaccount"
ftp.Password = "ftppassword"
ftp.TimeOut=10000
If ftp.Connected=True Then
pvw.FTPclient = ftp
pvw.CommandVisible=False
End If
发现有时运行代码时,foxtable会卡死,是我的网络有问题吗。
或者推介一下用什么来搭建ftp比较好