使用CFtpConnection過程中遇到ftp虛擬目錄下載成功但上傳失敗,ftp服務(wù)器為windows 2003,網(wǎng)上查了很久仍然沒有解決,GetLastError()返回12003錯(cuò)誤碼,InternetGetLastResponseInfo返回具體錯(cuò)誤信息如下
InternetGetLastResponseInfo:200 Type set to I.200 PORT command successful.550 Virtual XmlFilesFolder\TaskConfig.xml: Access is denied.
在連接ftp服務(wù)器時(shí)使用Aministartor帳號即可解決問題
如果使用CInternetFile的Write上傳文件不會(huì)有這問題