Chilkat ftp.SyncLocalDir打开文件?

时间:2015-01-15 14:39:12

标签: ftp chilkat

当我在本地目录上打开一个文件时,我遇到了ftp.SyncLocalDir的问题。

我正在使用http://www.example-code.com/vbnet/ftp_syncLocalTree.asp中的示例进行一些小的更改。它已经工作了几天,然后停止工作。 我发现其中一个文件在本地目录中打开。通过http://chilkatforum.com/论坛,我看到其中一个答案说明了这一点  “Chilkat将检测可能存在许可/访问错误的错误,并将继续下载的其余部分。”

这对我来说不会发生。查看上一个错误文本,它指出该文件由另一个进程使用。没有其他文件同步。 我需要在代码中添加其他内容以强制它在错误后继续吗?

以下是最后一个错误文字。

谢谢, 史蒂夫

ChilkatLog:
SyncLocalDir:
DllDate: Dec  5 2014
ChilkatVersion: 9.5.0.46
UnlockPrefix: *********
Username: *********
Architecture: Little Endian; 32-bit
Language: .NET 4.0
VerboseLogging: 0
commandCharset: ansi
dirListingCharset: ansi
localDirPath: Q:\TEST
mode: 2
ProgressMonitoring:
  enabled: yes
  heartbeatMs: 0
  sendBufferSize: 65536
--ProgressMonitoring
downloadDir:
  getFile2:
    localFilename: Q:\TEST/LINE_6 _13.csv
    Replacing existing local file
    openForReadWriteWin32:
      Failed to open file (2)
      localFilePath: Q:\TEST\LINE_6 _13.csv
      currentWorkingDirectory: H:\Code In Progress\LLS\Gen 3 Test And Crimp
      w-network\VB Code\trunk\FTP Syncronize\bin\Debug
      osErrorInfo: The process cannot access the file because it is being us
      ed by another process.
      localWindowsFilePath: Q:\TEST\Line 6\LINE_6 _13.csv
    --openForReadWriteWin32
  --getFile2
  Failed to download file
  failedFilename: /LINE_6 _13.csv
--downloadDir
Failed.
--SyncLocalDir
--ChilkatLog

1 个答案:

答案 0 :(得分:0)

请为.NET 4.0 Framework尝试这个新版本:

32位下载:http://www.chilkatsoft.com/download/preRelease/ChilkatDotNet4-9.5.0-win32.zip

64位下载:http://www.chilkatsoft.com/download/preRelease/ChilkatDotNet4-9.5.0-x64.zip

继续过去的权限/访问问题的功能与远程服务器上的问题有关,而不是本地文件系统。此新构建现在也应对本地权限错误执行相同操作。在发布(很快)时,将在Chilkat版本9.5.0.47的发行说明中注明。

如果您遇到问题,请使用此新版本发布LastErrorText。