FtpWebRequest
(ASP.NET/C#)経由でWindows Azureでデータをダウンロードすることはできますか?FtpWebRequest + Windows Azure =動作していませんか?
私は現在ありません私の問題は、予想通りFtpWebRequest
は、一般的に動作していないということですか、私は別の障害が発生した場合...
はSBがある場合は必ずこれをやっています。前にこれをしましたか?
FtpWebRequest
(ASP.NET/C#)経由でWindows Azureでデータをダウンロードすることはできますか?FtpWebRequest + Windows Azure =動作していませんか?
私は現在ありません私の問題は、予想通りFtpWebRequest
は、一般的に動作していないということですか、私は別の障害が発生した場合...
はSBがある場合は必ずこれをやっています。前にこれをしましたか?
Windows Azure Storageについて話しているなら、間違いなく。 FTPはサポートされていません。
あなたは計算の役割で作業している場合は、これをサポートするために何かを書くことができますが、それはDIYです、ラ: http://blog.maartenballiauw.be/post/2010/03/15/Using-FTP-to-access-Windows-Azure-Blob-Storage.aspx
私はFTPLibでのftp-要求をやって私の問題を解決することができます。 これは、次のことを意味します。ファイルを紺や外部ソースにコピー/ロードすることができます。 :-)
AlexFTPSと同じようにするには、StartKeepAlive
を追加する必要があります。
try
{
string fileName = Path.GetFileName(this.UrlString);
Uri uri = new Uri(this.UrlString);
string descFilePath = Path.Combine(this.DestDir, fileName);
using (FTPSClient client = new FTPSClient())
{
// Connect to the server, with mandatory SSL/TLS
// encryption during authentication and
// optional encryption on the data channel
// (directory lists, file transfers)
client.Connect(uri.Host,
new NetworkCredential("anonymous",
"[email protected]"),
ESSLSupportMode.ClearText
);
client.StartKeepAlive();
// Download a file
client.GetFile(uri.PathAndQuery, descFilePath);
client.StopKeepAlive();
client.Close();
}
}
catch (Exception ex)
{
throw new Exception("Failed to download", ex);
}