PRB: Path Limit is 260 Bytes, Not Characters

Last reviewed: December 11, 1997
Article ID: Q172895
The information in this article applies to:
  • Microsoft Visual InterDev, version 1.0

SYMPTOMS

When adding files or creating folders in your project, you may see the following message:

   The folder name you specified is too long. The complete folder
   path must be less than 260 characters.

You may see this message even if your path is less than 260 characters because of one of the following reasons:
  • This limit is the number of bytes supported in the path, not the number of characters. If using double-byte characters, you will hit this limit long before you have 260 characters in the path.
  • The path on your client machine is longer than the path on the Web, so you hit this limit sooner than expected.

CAUSE

The path to the Web files on the server may be shorter than the path to the files on the local drive. Although the Web path may be short enough, when you add a few extra folders for the local drive location the path becomes too long. For example, a Web path could be as follows:

   "c:\inetpub\wwwroot\some long path" (less than 260 characters)

While the path on the local drive could be as follows:

   "c:\program files\devstudio\an extremely long project directory\
   MyProjects\some long path"

This simple example adds just over 50 bytes to the path length.

When working with double-byte characters, these limits are reached much faster, and the difference between the Web path length and the local path length would be more distinct.

RESOLUTION

Do not use paths of unusually long lengths.

STATUS

This behavior is by design.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/vinterdev/

Keywords          : VIProject kberrmsg
Version           : WINDOWS:1.0
Platform          : WINDOWS
Issue type        : kbprb


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 11, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.