Bug integration, error access denied

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

Moderator: SourceGear

Post Reply
kkchan
Posts: 54
Joined: Wed Jun 30, 2010 12:45 am

Bug integration, error access denied

Post by kkchan » Thu Jun 28, 2012 12:25 am

Hi
I have tested my bug integration via cvsSubmit.asp -> aspx, working fine in my dev machine. However, I hit the below error when deploy to server. It seem right permission issue to folder as specified. I use NETWORK SERVICE to run this appPool.

I only found this folder under current logged in user profile folder. May I know the "exact" folder it looking for?

Beside, do I need to "pre-load" all repository info to local disk first? I ever hit error in my dev machine, which I need to get latest all files to local disk first before Login can working properly.

Thank you

Code: Select all

Exception information: 
    Exception type: Exception 
    Exception message: System.UnauthorizedAccessException: Access to the path 'Sourcegear\Vault_1\Client\32F1DD7A-44D3-4032-8F01-3D03123BDD94\vaulttogemini' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
   at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
   at VaultClientOperationsLib.CacheMember.SerializeCacheMember(Object o, VaultDateTime& lastSyncTime)
   at VaultClientOperationsLib.CacheMember.SaveObjectToDisk(Object o)
   at VaultClientOperationsLib.CacheMember_LastStructureGetTime.set_LastStructureGetTime(VaultDateTime value)
   at VaultClientOperationsLib.ClientInstance.Refresh(Int64 knownServerRevision, Boolean isRetry, VaultRepositoryDelta& delta, Int64& returnedRevision, ChangeSetItemColl committedItems)
   at VaultClientOperationsLib.ClientInstance.Refresh()
   at VaultClientOperationsLib.ClientInstance.SetActiveRepositoryID(Int32 id, String username, String uniqueRepositoryID, Boolean doRefresh, Boolean updateKnownChangesAll)
   at VaultClientIntegrationLib.ServerOperations.SetRepository(VaultRepositoryInfo repositoryInfo)
   at VaultClientIntegrationLib.ServerOperations.SetRepository(String repositoryName)
   at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altCommand, Boolean bAllowAuto, Boolean bSaveSession)
   at VaultClientIntegrationLib.ServerOperations.Login()
   at Gemini._Default.Page_Load(Object sender, EventArgs e) in D:\InHouse\VaultToGemini\VaultToGemini\cvsSubmit.aspx.cs:line 73 
 

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Bug integration, error access denied

Post by lbauer » Thu Jun 28, 2012 8:05 am

'Sourcegear\Vault_1\Client\32F1DD7A-44D3-4032-8F01-3D03123BDD94\vaulttogemini'
This is the path to the client-side cache, which is needed for source control operations. The cache holds a copy of the tree, pending change set info, etc., and file baselines.

The cache is created under the local profile of the logged in user.

You could try giving Network Service full control of this directory. Or you could try running the app pool under a custom account, since I don't think Network Service has a local profile.
Linda Bauer
SourceGear
Technical Support Manager

kkchan
Posts: 54
Joined: Wed Jun 30, 2010 12:45 am

Re: Bug integration, error access denied

Post by kkchan » Thu Jun 28, 2012 7:40 pm

Hi
May I know which application pool should I set with custom account? The one that contains my custom code to call ServerOperations.Login() or VaultService?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Bug integration, error access denied

Post by lbauer » Fri Jun 29, 2012 9:38 am

I'd start with the app pool that runs your custom code, since it appears to be acting like a client, and a client uses a local cache.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply