FtpResponse21: 550 Il processo non può accedere al file perché esso è utilizzato da un altro processo. Chilkat FTP e FileZilla Server

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

  •  10-10-2019
  •  | 
  •  

Domanda

Sto usando componente Chilkat FTP per scaricare dei file da un server FTP in esecuzione FileZilla Server. Di seguito è riportato il messaggio di errore quando provo a farlo.

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.

Il file è lì, e posso scaricare manualmente utilizzando il client FileZilla FTP. Qualcuno può dirmi che cosa sta succedendo qui?

È stato utile?

Soluzione

Uh ... è questo server FTP sul proprio host locale? Di certo aspetto it - myIP e hostname sono gli stessi. In tal caso, si sta cercando di scrivere lo stesso file su se stessa, rotonda attraverso l'interfaccia di loopback. L'errore che stai ricevendo è ragionevolmente descrittivo -. FileZilla Server ha aperto il file per la lettura, e si sta cercando di scrivere ad esso

Prova a memorizzare un nome diverso.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top