Access to the path 'C:\Myfolder' is denied Error

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
sambati
Posts: 4
Joined: Tue Apr 24, 2007 10:07 am

Access to the path 'C:\Myfolder' is denied Error

Post by sambati » Wed Apr 25, 2007 2:24 pm

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)
Last edited by sambati on Wed Apr 25, 2007 2:52 pm, edited 1 time in total.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Apr 25, 2007 2:40 pm

You're saying the Vault server is not on the Sharepoint server, but an API client is? And the directory that can't be access is on the Sharepoint server, right?

sambati
Posts: 4
Joined: Tue Apr 24, 2007 10:07 am

Access to the path 'C:\Myfolder' is denied Error

Post by sambati » Wed Apr 25, 2007 2:43 pm

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)

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Thu Apr 26, 2007 7:43 am

Are these errors only happening when you are using what you wrote for the Vault API? Do they happen with the regular client GUI as well?

If you don't have a client on that machine, could you load one and try a get with the GUI?

sambati
Posts: 4
Joined: Tue Apr 24, 2007 10:07 am

Post by sambati » Thu Apr 26, 2007 7:52 am

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.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Thu Apr 26, 2007 8:34 am

It seems to me that your program is probably running under different permissions than the Vault Command Line client. You could check that and give the account your program runs under specific access to that folder. Or open up security more on that folder?

Post Reply