living in my life (史蘭諾系統整合服務)
Analytics
2011年6月14日 星期二
[C#]解決 FtpWebRequest上傳檔案到Linux 550 無法使用檔案 找不到檔案或是沒有權限。(Solve FtpWebRequest upload files to Linux 550 File not found or can not use the files do not have permission.)
問題
上傳檔案到Linux的時候,發生"無法使用檔案,找不到檔案或是沒有權限"的訊息,但上傳到Windows的FTP時,卻是正常的!!
解決方法
例如URL為ftp://10.1.0.1/home/upload
在URL後面加上%2F
ftp://10.1.0.1/%2F/home/upload
這樣就可以解決問題
http://blogs.msdn.com/b/mariya/archive/2006/03/06/544523.aspx
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
熱門文章
沒有留言:
張貼留言