ftpwebrequest

    0热度

    1回答

    我试图从一个文件夹文件移动到另一个使用的FtpWebRequest但我不断收到错误550这是我的代码的文件; var requestMove = (FtpWebRequest)WebRequest.Create(Helper.PathFtp + Helper.NewFolder + file); requestMove.Method = WebRequestMethods.Ftp.Rename;

    0热度

    1回答

    我在密码中使用带有特殊字符“§”的FtpWebRequest时出现问题。 的代码看起来是这样的: FtpWebRequest reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://ftphost")); reqFTP.Method = WebRequestMethods.Ftp.ListDirectory; reqFTP.Use

    8热度

    1回答

    我得到了很多不同的问题,在这个函数: public static bool UploadToFTP(string strFileName, string strFolderName) { bool isUploaded = false; string strFilename = string.Empty; string strFtpURI =

    0热度

    1回答

    我有预期的FTP类,我能得到响应代码(或说明): FtpWebResponse response = (FtpWebResponse)request.GetResponse(); response.StatusCode; 由于单上载的错误,我们已经编写围绕工作不使用的FtpWebRequest和相关的类,但使用ftp客户端(在Linux上)。 在.net /单声道的FtpWebR

    6热度

    3回答

    有人可以看看下面的代码,告诉我我做错了什么。我只是兜兜,,,任何指针十分赞赏 public class FtpWebRequestUtil { private static string RemoteHost; private static string RemoteFtpPath; public static NetworkCredential Credentia

    0热度

    1回答

    如何解决FTP 550错误“访问被拒绝”,因为上传时连接不良。 我敢肯定,我的服务器已经授予权限,因为有时我可以上传没有问题。 我看了一些帖子说,这发生,因为服务器已经得到了缓慢的连接,但我想知道的是有一个人能解决这个问题 这里是我的代码: public bool FTPUploadFunct(string uploadto2, string newskinlocation2) {

    0热度

    1回答

    我使用FTP IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication(); using (IsolatedStorageFileStream isoStream = new IsolatedStorageFileStream("test.xml", FileMode.

    1热度

    2回答

    我试图在ftp web服务器上上传文件。我找不到FtpWebRequest在Windows Phone中的类,所以我试图通过添加新的可移植类库的项目。我加入以下代码 public void GetDataUsingDataContract(byte[] fileByte) { FtpWebRequest request = (FtpWebRequest)WebRequest.

    1热度

    1回答

    这使用FTP下载.csv文件。该文件在服务器上为46k。当我下载时,它被截断为44k。我不知道为什么......当我在Excel中查看数据时,它被缩短了。我增加了缓冲区到4096但没有骰子(这可能不是问题)。 我本来抓住下面的代码和调整了它:Downloading Files Using FTPWebRequest 赞赏有什么想法!谢谢。 private void DownloadFile(str

    0热度

    1回答

    当我试图在浏览器或.NET中连接FTP服务器时,我无法连接。 Bu当我使用Filezilla时,我连接并上传/下载文件。我尝试了以下选项。 1-当我尝试使用Filezilla时,我连接。 2-我在cmd中做了tracert,并且出现了'Destination host unreachable'的错误。我在Windows功能中打开了Telnet客户端。但是这一次我收到错误“Rewuest超时”。我关