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
Tasks
How to: Find Out More About an Exception with the Exception Assistant
How to: Parse File Paths in Visual Basic