PathTooLongException
Moderator: SourceGear
PathTooLongException
I get the following excepiton on one of my machines when attempting to access certain folders in the vault:
[9/15/2005 11:29:15 AM] Local file update for $/ShawFloors/Manufacturing/Carpet/Tufting/Data/Debug/_projects/NUnitTuftingDALDB/_referencedobjects/ShawFloors.Manufacturing.Carpet.Tufting.Data.ITuftingDBDAL.dll failed: System.IO.PathTooLongException: The path is too long after being fully qualified. Make sure path is less than 260 characters.
I understand the 260 char limitation, but the path I'm attempting to access is on 162 chars. And this is only happening on one machine in our department.
[9/15/2005 11:29:15 AM] Local file update for $/ShawFloors/Manufacturing/Carpet/Tufting/Data/Debug/_projects/NUnitTuftingDALDB/_referencedobjects/ShawFloors.Manufacturing.Carpet.Tufting.Data.ITuftingDBDAL.dll failed: System.IO.PathTooLongException: The path is too long after being fully qualified. Make sure path is less than 260 characters.
I understand the 260 char limitation, but the path I'm attempting to access is on 162 chars. And this is only happening on one machine in our department.
It's not just the repository path that can reach this limit; it can also be the working folder path or path to the client-side cache files on disk.
See further discussion here:
http://support.sourcegear.com/viewtopic.php?t=1965
See further discussion here:
http://support.sourcegear.com/viewtopic.php?t=1965
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
where's the client-side cache files?
My working folder is exactly the same structure as the repository path so it muct be the client-side cache path causing this exception. Is there any way I can find out what cache path the vault is using? Do I have the ability to control the location of this cache?
The client side cache by default is in
C:\Documents and Settings\[username]\Application Data\SourceGear\Vault_1
for pre 3.1 clients
or
C:\Documents and Settings\[username]\Local Settings\Application Data\SourceGear\Vault_1
for 3.1 and above.
In 3.1 and above, you have the ability to change this to any location you want, via Tools->Options->Local Files->Cache/Backup Locations
C:\Documents and Settings\[username]\Application Data\SourceGear\Vault_1
for pre 3.1 clients
or
C:\Documents and Settings\[username]\Local Settings\Application Data\SourceGear\Vault_1
for 3.1 and above.
In 3.1 and above, you have the ability to change this to any location you want, via Tools->Options->Local Files->Cache/Backup Locations
Cache File Path is also < 260 chars
I just check the path for the client side cache files and it is in the default location you listed in the prior post. It's length on my machine is 152 chars. So everything appears to be well within the 260 character limit. Any ideas? Thanks.
Try turning on client logging (see http://support.sourcegear.com/viewtopic.php?t=1534) and check whether the error reported in the log file has any additional info. It would be good to know where in the code this is failing exactly.
Does this happen during a Get operation?
Also, in the GUI client, what is reported as the working folder at $/ShawFloors/Manufacturing/Carpet/Tufting/Data/Debug/_projects/NUnitTuftingDALDB/_referencedobjects? (you could do a Set Working Folder at that folder level, and copy the contents of the dialog)
Does this happen during a Get operation?
Also, in the GUI client, what is reported as the working folder at $/ShawFloors/Manufacturing/Carpet/Tufting/Data/Debug/_projects/NUnitTuftingDALDB/_referencedobjects? (you could do a Set Working Folder at that folder level, and copy the contents of the dialog)
A guess: it may be that the length limit reported (260 characters) may actually be 260 bytes, and after Unicode representation of your path, this limit is exceeded. In my experience, when this error message shows up, the path really is longer than 260 characters, so this may not be the cause of your problem.
Shaw Terwilliger
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
Logging Enabled
Sorry it's taken me so long to get back to you on this. I enabled logging and it doesn't show anything different than the Vault's message window. The path remains at 162 chars in the log file, but I'm still getting the PathTooLongException. Any ideas?
version 3.0.7 (2863)
my vault client is version 3.0.7 (2863). yes, it is still only happening on one machine.