Troubleshooting Exceptions: System.IO.PathTooLongException

 

A PathTooLongException exception is thrown when a path name or file name is longer than the system-defined maximum length.

Associated Tips

  • Make sure the path is not longer than the system-defined maximum.
    On Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.

See Also

PathTooLongException
How to: Use the Exception Assistant
How to: Parse File Paths in Visual Basic