Question:
Hi,
I try to download file using ftp2 class to a network folder using UNC path and I got this error:
ChilkatLog: GetFile: DllDate: Dec 12 2012 UnlockPrefix: ALANNOFTP Username: OHOU02WK41:tin.nguyen Architecture: Little Endian; 32-bit Language: .NET 2.0 VerboseLogging: 0 ProgressMonitoring: enabled: no heartbeatMs: 0 sendBufferSize: 65536 --ProgressMonitoring AutoGetSizeForProgress: 0 localFilename: \ohou02dt01.orion.internalDataTransfersGatewayDemographicToBeProcessedtest.csv openForReadWriteWin32: Failed to open file (2) localFilePath: \ohou02dt01.orion.internalDataTransfersGatewayDemographicToBeProcessedtest.csv currentWorkingDirectory: D:TFS_RMI_DevRMI_DevDataRetriever.rootDataRetrieverDataRetrieverbinDebug osErrorInfo: The system cannot find the file specified. localWindowsFilePath: \ohou02dt01.orion.internalDataTransfersGatewayDemographicToBeProcessedtest.csv --openForReadWriteWin32 TotalTimeMs: Elapsed time: 141 millisec Failed. --GetFile --ChilkatLog
This is the code that I use: success = ftps.GetFile(fname, localFilePath.TrimEnd("") & "" & fname)
This is the value of my variables: ?localFilePath.TrimEnd("") & "" & fname
"\ohou02dt01.orion.internalDataTransfersGatewayDemographicToBeProcessedtest.csv"
The folder is there.
Could you help?
Thanks, Tin Nguyen
One thing I can think of.... is this process running with privileges on the network?
For example, a typical Windows Service process can not access the network, you need to set a user/pwd for the service.