System.IO.PathTooLongException is thrown while DOCX TO HTML conversion

Hi,

I have a error while trying to save a .docx document to a .html file.

The error message say “System.IO.PathTooLongException: ‘Le chemin d’accès spécifié, le nom de fichier ou les deux sont trop longs. Le nom de fichier qualifié complet doit comprendre moins de 260 caractères et le nom du répertoire moins de 248 caractères.’”
Which mean the path is too long but the original full path to save the file is less than 260 character and the directory path is less than 248 (192 character in my file)

the path : D:\Groupe ISILOG 1\NORMEA\Versions correctives\V8.0.x.x\Fixes\8.0.5.x\Noyau Dev\IsiSMQ_ND\TemporaryWorkingFiles\LTUL_xxxxxx_xxxxxxxxxx\1000000040456\VIS8582V\11000000006190-11000000048654.html
the call stack :

mscorlib.dll!System.IO.PathHelper.GetFullPathName() Unknown
mscorlib.dll!System.IO.Path.LegacyNormalizePath(string path = “D:\Groupe ISILOG 1\NORMEA\Versions correctives\V8.0.x.x\Fixes\8.0.5.x\Noyau Dev\IsiSMQ_ND\TemporaryWorkingFiles\LTUL_xxxxxx_xxxxxxxxxx\1000000040456\VIS8583V\11000000006190-11000000048654_fichiers\11000000006190-11000000048654.9e99785c-0000-0000-5c78-999e00000000.ttf”, bool fullCheck, int maxPathLength = 260, bool expandShortPaths = true) Unknown
mscorlib.dll!System.IO.FileStream.Init(string path, System.IO.FileMode mode = Create, System.IO.FileAccess access = ReadWrite, int rights, bool useRights = false, System.IO.FileShare share = None, int bufferSize = 4096, System.IO.FileOptions options = None, Microsoft.Win32.Win32Native.SECURITY_ATTRIBUTES secAttrs = null, string msgPath = “11000000006190-11000000048654.9e99785c-0000-0000-5c78-999e00000000.ttf”, bool bFromProxy = false, bool useLongPath = false, bool checkHost) Unknown
mscorlib.dll!System.IO.FileStream.FileStream(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize) Unknown
Aspose.Words.dll! .() Unknown
Aspose.Words.dll! .() Unknown
Aspose.Words.dll! . ( ) Unknown
Aspose.Words.dll! . . ( = { }) Unknown
Aspose.Words.dll!Aspose.Words.Document.( ) Unknown
Aspose.Words.dll!Aspose.Words.Document.(System.IO.Stream , string , Aspose.Words.Saving.SaveOptions ) Unknown

The problem is the font saving path which is :
D:\Groupe ISILOG 1\NORMEA\Versions correctives\V8.0.x.x\Fixes\8.0.5.x\Noyau Dev\IsiSMQ_ND\TemporaryWorkingFiles\LTUL_xxxxxx_xxxxxxxxxx\1000000040456\VIS8583V\11000000006190-11000000048654_fichiers\11000000006190-11000000048654.9e99785c-0000-0000-5c78-999e00000000.ttf

Can the path/naming for the font file .ttf be change ?

Thanks.

@julien.mevel.isilog

It seems that this issue is not related to Aspose.Words. Please make sure that your path to input document is correct and valid using .NET API.

If you still face problem, please ZIP and attach your input document here for testing. We will investigate the issue and provide you more information on it.