When using .Net 4.6.2 you are allowed to specify long path names as “\?\D:\very long path”.
Reference Naming Files, Paths, and Namespaces - Win32 apps | Microsoft Learn
I am using Aspose Words v4.0.30319 and Aspose Cells v4.0.30319. When I try this I get the error “The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.”
at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.InternalGetDirectoryName(String path)
at Aspose.Words.Document…ctor(String fileName, LoadOptions loadOptions)
at Aspose.Words.Document…ctor(String fileName)
at Org.Frb.Mpls.FedCrawler.Service.FileTypes.WordFiles.ReadWordFile(String file) in C:\LONGPATHNAME:line 40"