I've tried a number of things, and now I'm at a loss of what to do next.
Here's the code:
Code: Select all
string _file = test.txt;
string prevPath = mlClient.TreeCache.GetWorkingFolder($/mySite);
string diskPath = "\\server\client_sync";
string fullPath = diskPath + "\\" + _file;
VaultClientFolder searchFolder = mlClient.Repository.Root.FindFolderRecursive(_vaultPath);
VaultClientFile _vcFile = new VaultClientFile();
SearchForFile(searchFolder, _file, ref _vcFile);
// set working folder
mlClient.TreeCache.SetWorkingFolder(_vaultPath, diskPath);
mlClient.WorkingFolderOptions.MakeBackups = true;
mlClient.WorkingFolderOptions.MakeWritableAfterCommit = _makeWritable;
//Get file from Vault
mlClient.Get(_vcFile ,true, MakeWritableType.MakeAllFilesWritable, SetFileTimeType.Current, MergeType.Unspecified, null);
Message: Exception of type VaultClientOperationsLib.GetLatestVersionFailedException was thrown.
Source: VaultClientOperationsLib
Stack: at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, Boolean flat, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID, Boolean isRetry, Boolean isGetByDisplayVersion)
at VaultClientOperationsLib.ClientInstance.Get(VaultClientFile[] files, Boolean forceLatest, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, OverwritePrompt PromptData)
at VaultClientOperationsLib.ClientInstance.Get(VaultClientFile file, Boolean forceLatest, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, OverwritePrompt PromptData)
Can someone help?
I'm using Vaut v3.1.7.3719.
Thanks,
David