久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='f51fl'><tr id='f51fl'><dt id='f51fl'><q id='f51fl'><span id='f51fl'><b id='f51fl'><form id='f51fl'><ins id='f51fl'></ins><ul id='f51fl'></ul><sub id='f51fl'></sub></form><legend id='f51fl'></legend><bdo id='f51fl'><pre id='f51fl'><center id='f51fl'></center></pre></bdo></b><th id='f51fl'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='f51fl'><tfoot id='f51fl'></tfoot><dl id='f51fl'><fieldset id='f51fl'></fieldset></dl></div>

        <small id='f51fl'></small><noframes id='f51fl'>

          <bdo id='f51fl'></bdo><ul id='f51fl'></ul>
        <tfoot id='f51fl'></tfoot>

      1. <legend id='f51fl'><style id='f51fl'><dir id='f51fl'><q id='f51fl'></q></dir></style></legend>

      2. FtpWebRequest 返回“550 文件不可用(例如,文件未找

        FtpWebRequest returning quot;550 File unavailable (e.g. file not found, no access)quot; when using ListDirectoryDetails for a directory that exists(FtpWebRequest 返回“550 文件不可用(例如,文件未找到,無法訪問)對存在的

          <small id='Cb2DL'></small><noframes id='Cb2DL'>

        • <tfoot id='Cb2DL'></tfoot><legend id='Cb2DL'><style id='Cb2DL'><dir id='Cb2DL'><q id='Cb2DL'></q></dir></style></legend>
          <i id='Cb2DL'><tr id='Cb2DL'><dt id='Cb2DL'><q id='Cb2DL'><span id='Cb2DL'><b id='Cb2DL'><form id='Cb2DL'><ins id='Cb2DL'></ins><ul id='Cb2DL'></ul><sub id='Cb2DL'></sub></form><legend id='Cb2DL'></legend><bdo id='Cb2DL'><pre id='Cb2DL'><center id='Cb2DL'></center></pre></bdo></b><th id='Cb2DL'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Cb2DL'><tfoot id='Cb2DL'></tfoot><dl id='Cb2DL'><fieldset id='Cb2DL'></fieldset></dl></div>

            <tbody id='Cb2DL'></tbody>

            • <bdo id='Cb2DL'></bdo><ul id='Cb2DL'></ul>

                • 本文介紹了FtpWebRequest 返回“550 文件不可用(例如,文件未找到,無法訪問)"對存在的目錄使用 ListDirectoryDe??tails 時的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有一個煩人的問題,阻止我在 FTP 中獲取我需要的文件.此文件可能有不同的名稱,因此我需要先訪問該文件夾并列出其中的文件,然后直接向該文件發出請求.

                  我的問題是,例如,我可以在 Filezilla 中訪問此文件,并且也完美地發現了該文件夾,但是當使用 FtpWebResponse 實例獲取該文件夾時,出現錯誤 550

                  <塊引用>

                  550 文件不可用(例如文件未找到,無法訪問)

                  這里是代碼:

                  FtpWebRequest wr = (FtpWebRequest)WebRequest.Create("ftp://ftp.dachser.com/data/edi/kunden/da46168958/out");wr.Method = WebRequestMethods.Ftp.ListDirectoryDe??tails;wr.Credentials = new NetworkCredential(登錄"、密碼");FtpWebResponse 響應 = (FtpWebResponse)wr.GetResponse();流響應流 = response.GetResponseStream();StreamReader reader = new StreamReader(reponseStream);字符串名稱 = reader.ReadToEnd();

                  <塊引用>

                  FtpWebResponse 響應 = (FtpWebResponse)wr.GetResponse();

                  是拋出錯誤的那一行

                  PS:生產、測試??和 FileZilla 在同一個域中,使用相同的互聯網連接(如果有幫助)

                  感謝您的關注和反饋

                  FileZilla 日志:

                  來自我的程序的日志,紅色圈出的錯誤與 FTP 錯誤無關

                  解決方案

                  FtpWebRequest 解釋 URL 時,它不會將分隔主機名和路徑的斜杠視為路徑的一部分.然后將提取的路徑按原樣與 FTP CWD 命令一起使用.這意味著 FTP 服務器將相對于您的主目錄解析路徑.如果您的帳戶未經過 chroot(客戶端未將 home 視為根),則缺少前導斜杠會導致意外行為.

                  在您的情況下,您從 /remote/path 開始并使用 ftp://example.com/remote/path/ 之類的 URL,它將嘗試更改到 remote/path,所以最終到 /remote/path/remote/path.這不是你想要的.

                  • 您必須使用主文件夾的相對路徑.在您的情況下,這意味著使用沒有任何路徑的 URL.
                  • 或者使用絕對路徑,需要在主機名后使用兩個斜杠:ftp://example.com//remote/path/.

                  另請注意,文件夾的 URL 應以斜杠結尾:為什么 FtpWebRequest 會為此現有目錄返回空流?

                  其他 550 問題見FtpWebRequest 返回錯誤 550 文件不可用

                  I have an annoying problem preventing me to get a file I need in an FTP. This file may have differents names so I need to access the folder first and list files inside to do a request directly to the file then.

                  My problem is that I can access this file in Filezilla for example, and perfectly discovers the folder as well, but when using an FtpWebResponse instance to get the folder, I have an error 550

                  550 File unavailable (e.g. file not found, no access)

                  here is the code :

                  FtpWebRequest wr = (FtpWebRequest)WebRequest.Create("ftp://ftp.dachser.com/data/edi/kunden/da46168958/out");
                  
                  wr.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
                  
                  wr.Credentials = new NetworkCredential("login", "password");
                  
                  FtpWebResponse response = (FtpWebResponse)wr.GetResponse();
                  
                  Stream reponseStream = response.GetResponseStream();
                  
                  StreamReader reader = new StreamReader(reponseStream);
                  
                  string names = reader.ReadToEnd();
                  

                  FtpWebResponse response = (FtpWebResponse)wr.GetResponse();

                  is the line throwing the error

                  PS: Production, tests and FileZilla are on the same domain, using the same internet connection (if it helps)

                  Thanks for your attention and feedback

                  The FileZilla logs:

                  Logs from my program, error circled in red isn't related to FTP error

                  解決方案

                  When FtpWebRequest interprets the URL, it does not consider the slash that separates the hostname and the path as a part of the path. The extracted path is then used with FTP CWD command as is. That means that the FTP server will resolve the path relatively to your home directory. If your account is not chrooted (the home is not seen as the root by the client), the lack of the leading slash leads to unexpected behaviour.

                  In your case, you start in /remote/path and with URL like ftp://example.com/remote/path/, it will try to change to remote/path, so ultimately to /remote/path/remote/path. That's not what you want.

                  • Either you must use a relative path to the home folder. What in your case means using an URL without any path.
                  • Or use an absolute path, for which you need to use two slashes after the hostname: ftp://example.com//remote/path/.

                  Also note that an URL to a folder should end with a slash: Why does FtpWebRequest return an empty stream for this existing directory?

                  For other 550 problems, see FtpWebRequest returns error 550 File unavailable

                  這篇關于FtpWebRequest 返回“550 文件不可用(例如,文件未找到,無法訪問)"對存在的目錄使用 ListDirectoryDe??tails 時的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數調用按鈕 OnClick)
                    <bdo id='koHZR'></bdo><ul id='koHZR'></ul>
                  • <tfoot id='koHZR'></tfoot>

                        <i id='koHZR'><tr id='koHZR'><dt id='koHZR'><q id='koHZR'><span id='koHZR'><b id='koHZR'><form id='koHZR'><ins id='koHZR'></ins><ul id='koHZR'></ul><sub id='koHZR'></sub></form><legend id='koHZR'></legend><bdo id='koHZR'><pre id='koHZR'><center id='koHZR'></center></pre></bdo></b><th id='koHZR'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='koHZR'><tfoot id='koHZR'></tfoot><dl id='koHZR'><fieldset id='koHZR'></fieldset></dl></div>

                            <tbody id='koHZR'></tbody>

                            <small id='koHZR'></small><noframes id='koHZR'>

                          1. <legend id='koHZR'><style id='koHZR'><dir id='koHZR'><q id='koHZR'></q></dir></style></legend>

                            主站蜘蛛池模板: 一区中文字幕 | 羞羞视频网 | 亚洲视频在线观看 | 免费成年网站 | 国产精品日本一区二区在线播放 | 天天插天天操 | 国产激情偷乱视频一区二区三区 | 久久伊人亚洲 | 免费在线播放黄色 | 免费99视频 | 欧美一级在线视频 | 成人在线免费观看视频 | 91久久久久 | 久久男人 | 欧美日韩在线一区二区 | 色综网| 国产欧美二区 | 国产激情一区二区三区 | 国产日韩欧美在线观看 | 国产精品一区二区免费 | 国产免费一级片 | 午夜一区二区三区在线观看 | 夜久久| 久久成人精品视频 | 久久最新 | 国内久久精品 | 国产精品成人一区二区三区 | 啪啪免费网 | 国产91久久久久蜜臀青青天草二 | 国产一区不卡 | 国产精品亚洲综合 | xx视频在线观看 | 午夜私人影院在线观看 | 免费视频一区二区 | 久久综合久久综合久久综合 | 91一区二区三区在线观看 | 午夜免费福利电影 | 中文字幕欧美日韩一区 | 国产精品久久久久久av公交车 | 色妹子综合网 | 日本精品一区二区三区四区 |