I have a class library calling vault api used by a sharepoint server document event handler. Calls to checkout and undocheckout work fine. However, I get following error when I try to add a new item. Sharepoint site uses windows authentication and I have admin access to the box where sharepoint server is running. Also, I have given full permissions to "Everyone" on C:\Documents and Settings\All Users\Application Data folder on the server. Can you point out what I am missing here?
Thanks
Srini
Error Message: Access to the path 'C:\Myfolder' is denied. StackTrace: at VaultLib.FileCRC32.GetCRC(String strAbsolutePath)
at VaultClientOperationsLib.ChangeSetItem_AddFile.CreateRequest(ClientInstance ci)
at VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl givenItems, Boolean keepCheckedOut, Boolean removeLocalCopy, Boolean bIsImport, DateTime dateImport, Int32 nUserIDImport, Int64& nRevID)
at VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl givenItems, Boolean keepCheckedOut, Boolean removeLocalCopy)
at MyClass.VaultCommit(String VaultPath, ChangeSetItemColl oCsic)
at MyClass.VaultCommit(String VaultPath, String FileName, ChangeSetItemColl oCsic)
Access to the path 'C:\Myfolder' is denied Error
Moderator: SourceGear
Access to the path 'C:\Myfolder' is denied Error
Last edited by sambati on Wed Apr 25, 2007 2:52 pm, edited 1 time in total.
Access to the path 'C:\Myfolder' is denied Error
You are correct. Also, I am not able to get latest version of file. The error in this case is:
Exception of type 'VaultClientOperationsLib.GetLatestVersionFailedException' was thrown.; StackTrace: 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)
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)
at MyClass.Utility.Vault.GetLatestVersionFromVault(String VaultPath, String PhysicalLocalPath, String FileName)
Exception of type 'VaultClientOperationsLib.GetLatestVersionFailedException' was thrown.; StackTrace: 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)
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)
at MyClass.Utility.Vault.GetLatestVersionFromVault(String VaultPath, String PhysicalLocalPath, String FileName)
I don't have client on this machine. However, when I run VaultCmdLineClient (vault.exe get -host xxxxx -user xxxxxx -password xxxxxxxx -repository "$/MyFolder" -useworkingfolder "C:\MyFolder" ) on this box it works fine. Again, as I mentioned earlier Checkout and UndoCheckout works fine but the issue seems to be in accessing the folder when trying to add new file, checkin a file, and get latest version of the file.