Microsoft small business knowledge base

Article ID: 921317 - Last Review: January 17, 2015 - Revision: 1.2

This article has been archived. It is offered "as is" and will no longer be updated.


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

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


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.


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


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 (

Using Source Code Explorer (

Understanding the History window (

  • Microsoft Visual Studio 2005 Team System Team Foundation:
kbnosurvey kbarchive kbbug kberrmsg kbtshoot kbprb KB921317
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