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.

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.

Community Additions