Invalid File or Directory attributes value.

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
realtytrac
Posts: 34
Joined: Wed Jun 15, 2005 2:07 pm

Invalid File or Directory attributes value.

Post by realtytrac » Tue May 16, 2006 4:30 pm

Hello,

I am using Visual Build Pro's API with ASP.NET 2.0 to execute script. One of the steps in the script execute thsi command:

"C:\Program Files\SourceGear\Vault Client\vault.exe" -host netbuild -user hsabri -password xxx -repository RTracNet getlabel $/TestApp 4/12/2006-04 -setfiletime current -destpath C:\Inetpub\wwwroot\TestApp

I get the following error back:

<vault>
<error>
Invalid File or Directory attributes value.
</error>
<exception>
System.ArgumentException: Invalid File or Directory attributes value.
at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
at VaultClientOperationsLib.ClientInstance.ProcessFile_NonWorkingFolder(String tempFile, VaultClientFile file, VaultResponseGetFile response, String ancestorFullPath, String ancestorDiskPath, SetFileTimeType setFileTime, MakeWritableType makeWritable, MergeType merge, 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)
at VaultClientOperationsLib.ClientInstance.GetByLabelToNonWorkingFolder_GetData(VaultClientFile[] files, Boolean overwrite, MakeWritableType makeWritable, SetFileTimeType setFileTime, String ancestorFullPath, String ancestorDiskPath, OverwritePrompt PromptData, Int64 labelID, String currentPathToLabelItem, String labelSubItemPath, Boolean isLabelGetForSingleFile)
at VaultClientOperationsLib.ClientInstance.GetByLabelToNonWorkingFolder_GetData(VaultClientFolder folder, Boolean recursive, Boolean overwrite, MakeWritableType makeWritable, SetFileTimeType setFileTime, String destinationDiskPath, OverwritePrompt PromptData, Int64 labelID, String currentPathToLabelItem, String labelSubItemPath)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandGetLabel(String reposItem, String label, String labelSubItem)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
</exception>
<result success="no" />
</vault>

Any help would be appreciated,

RealtyTrac

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Wed May 17, 2006 1:19 pm

Try putting quotes around "4/12/2006-04". It may be that the command line is passing that value into the Vault CLC incorrectly.

Locked