0

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

我正在使用来自http://www.example-code.com/vbnet/ftp_syncLocalTree.asp的示例,并进行了一些小的更改。它已经工作了几天,然后停止工作。我发现其中一个文件在本地目录中打开。浏览http://chilkatforum.com/论坛,我看到其中一个答案指出“Chilkat 将检测可能是权限/访问错误的错误,并将继续下载剩余部分。”</p>

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

下面是最后一个错误文本。

谢谢,史蒂夫

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
4

1 回答 1

0

请尝试 .NET 4.0 框架的这个新版本:

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。

于 2015-01-15T23:12:05.787 回答