ftpresponse21:550该过程无法访问该文件,因为另一个过程正在使用该文件。 Chilkat FTP和Filezilla服务器

StackOverflow https://stackoverflow.com/questions/4447547

  •  10-10-2019
  •  | 
  •  

我正在使用Chilkat FTP组件从运行Filezilla服务器的FTP服务器下载一些文件。以下是我尝试这样做时的错误消息。

ChilkatLog:
  GetFile:
    DllDate: Sep 10 2010
    UnlockPrefix: MYFTP
    Username: Admin
    Component: .NET 2.0
    localFilename: C:\Site\Code\Project\Station\project_station_r3.zip
    ModeZ: 0
    BinaryMode: 1
    Passive transfer mode
    hostAddr: 172.21.14.64
    DataConnect:
      hostname: 172.21.14.64
      port: 2487
      ConnectTimeoutMs: 60000
      myIP: 172.21.14.64
      myPort: 2488
      connect successful.
    PassiveDataConnectionSetupTimeMs: Elapsed time: 0 millisec
    RetrFilename: [/Site/Code/Project/Station/project_station_r3.zip]
    RETR failed
    Filename: /Site/Code/Project/Station/project_station_r3.zip
    FtpResponse21: 550 /Site/Code/Project/Station/project_station_r3.zip: The process cannot access the file because it is being used by another process.
    TotalTimeMs: Elapsed time: 15 millisec
    Failed.

该文件在那里,我可以使用Filezilla FTP客户端手动下载它。有人可以告诉我这里发生了什么吗?

有帮助吗?

解决方案

嗯...您本地主机上的FTP服务器是吗?它肯定会看起来 - myIPhostname 是相同的。在这种情况下,您正在尝试在自身上写下相同的文件,然后通过环回接口进行回旋。您获得的错误是相当描述性的 - Filezilla Server已打开文件以进行读取,并且您正在尝试写入它。

尝试存储到其他文件名中。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top