DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 921317 - Last Review: August 9, 2006 - Revision: 1.2

SYMPTOMS

You receive an error message when you try to use the Microsoft Visual Studio 2005 Team Foundation Server tf command-line utility to access source code.

For example, you receive an error message if you use the following command to try to access the Myform.cs user-created class:
tf get /s:StringLongerThan259Characters myform.cs /version:c1256
The error message text resembles the following:
---------------------------
Microsoft Visual Studio
---------------------------
Error

TF10128: The path <path> contains more than the allowed 260 characters. Type or select a shorter path.
---------------------------
OK   
---------------------------

WORKAROUND

To work around this problem, create directory paths that contain two characters fewer than the limit that is stated in the error message. You can also use the History window and Source Code Explorer to find the information that you are looking for.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Despite the text in the error message, the path limit is not actually 260 characters when you search source code. The following limits exist:
  • Server paths are limited to 258 characters.
  • Local paths are limited to 259 characters.
For more information about the tf command-line utility, visit the following Microsoft Developer Network (MSDN) Web site:
Tf command-line utility commands
http://msdn2.microsoft.com/en-us/library/z51z7zy0.aspx (http://msdn2.microsoft.com/en-us/library/z51z7zy0.aspx)

Using Source Code Explorer
http://msdn2.microsoft.com/en-us/library/ms181370.aspx (http://msdn2.microsoft.com/en-us/library/ms181370.aspx)

Understanding the History window
http://msdn2.microsoft.com/en-us/library/ms245475.aspx (http://msdn2.microsoft.com/en-us/library/ms245475.aspx)

APPLIES TO
  • Microsoft Visual Studio 2005 Team System Team Foundation:
Keywords: 
kbbug kberrmsg kbtshoot kbprb KB921317
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support