Handle some common errors file

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

Moderator: SourceGear

Post Reply
Thomas Linder Puls
Posts: 153
Joined: Tue Jan 20, 2004 2:28 am
Location: PDC, Copenhagen Denmark
Contact:

Handle some common errors file

Post by Thomas Linder Puls » Fri Aug 12, 2005 5:39 am

Rather often Vault cannot "Get latest" of a file because it is locked in the operating system. (This for example happens because we have some executables and dll's under version control, and if these are in use vault cannot update them).

The problem is that Vault gives a rather elaborate stack-dump in this case, instead of a decent error message. In this dump I have to find the file name, and that is not very easy.
Thomas Linder Puls
Visual Prolog www.visual-prolog.com

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

Post by lbauer » Fri Aug 12, 2005 8:00 am

Can you post an example of this error? Perhaps we can streamline it into something more helpful.
Linda Bauer
SourceGear
Technical Support Manager

Thomas Linder Puls
Posts: 153
Joined: Tue Jan 20, 2004 2:28 am
Location: PDC, Copenhagen Denmark
Contact:

Post by Thomas Linder Puls » Sat Aug 13, 2005 5:44 pm

Sure:

Code: Select all

[14-08-2005 01:41:52] Local file update for $/_Vip7/ProDir/bin/vip6.exe failed: System.IO.IOException: The process cannot access the file "C:\thomas\_vip\_Vip7\ProDir\bin\vip6.exe" because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
   at VaultClientOperationsLib.WorkingFolder.UpdateWorkingFile(VaultClientFile file, Int64 targetVersion, Int64 displayVersion, MergeType merge, DateTime dt, Boolean makeBackups, OverwritePrompt PromptData)
   at VaultClientOperationsLib.WorkingFolder.UpdateWorkingFile(VaultClientFile file, Int64 targetVersion, Int64 displayVersion, MergeType merge, DateTime dt, OverwritePrompt PromptData)
   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)
Thomas Linder Puls
Visual Prolog www.visual-prolog.com

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

Post by lbauer » Mon Aug 15, 2005 8:24 am

Thanks. Turns out we had another request to fix this. I added your "vote."
Linda Bauer
SourceGear
Technical Support Manager

Post Reply