when GLVing: System.UnauthorizedAccessException

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

Moderator: SourceGear

Post Reply
nmcalpin
Posts: 38
Joined: Mon Nov 01, 2004 10:06 am

when GLVing: System.UnauthorizedAccessException

Post by nmcalpin » Thu Sep 11, 2008 9:01 am

We are using Vault 3.5.2.

Recently, we've been having increased occurrences of this error:

$/Dn/Nbt/Nbt/NbtConfig/bin/Debug/NbtConfig.XML failed: System.UnauthorizedAccessException: Access to the path "D:\Vault\Dn\Nbt\Nbt\NbtConfig\bin\Debug\NbtConfig.XML" is denied.

It happens for other file types (not just XML).

It has happened on more than one machine for more than one developer.

It happens upon GLV.

We don't have any other editors or tools open on the file that might be locking it. Sometimes, waiting a few moments and re-GLVing solves the problem.

The problem can be replicated even immediately after a clean reboot.

We have a process monitor log that I'd be happy to share with a tech/dev at sourcegear. Of interest are these few lines (modified for size):

Code: Select all

7:10:36.3780998 AM	VaultGUIClient.exe	WriteFile	D:\vault\Dn\CswConfig\CswConfig\bin\Debug\CswAppCore.dll	SUCCESS	Offset: 0, Length: 39,424
7:10:36.3783674 AM	VaultGUIClient.exe	SetBasicInformationFile	D:\vault\Dn\CswConfig\CswConfig\bin\Debug\CswAppCore.dll	SUCCESS	CreationTime: 0, [...]
7:10:36.3798802 AM	VaultGUIClient.exe	CloseFile	D:\vault\Dn\CswConfig\CswConfig\bin\Debug\CswAppCore.dll	SUCCESS	
But then a mere split second later:

Code: Select all

7:10:36.3801827 AM	VaultGUIClient.exe	CreateFile	D:\vault\Dn\CswConfig\CswConfig\bin\Debug\CswAppCore.dll	ACCESS DENIED	Desired Access: Generic Write, [...]
It seems like vault first has full permissions to the file, writes it, closes it, and then re-tries to open it in write mode but fails.

Any ideas??

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

Re: when GLVing: System.UnauthorizedAccessException

Post by Beth » Thu Sep 11, 2008 9:25 am

There's a couple others users whom I think had a similar issue:
http://support.sourcegear.com/viewtopic.php?f=5&t=10710
http://support.sourcegear.com/viewtopic ... 34&p=42274

If it's getting released again, I might take a look at antivirus to see if it's scanning those files. That is something that could be the same on each machine.
Beth Kieler
SourceGear Technical Support

Post Reply