When testing a simple Excel file conversion to PDF format, it seems that GroupDocs will scan all subfolders within the current working directory to look for fonts??
This causes problem when the current working directory contains special folders such as “My Music”, probably because it is hidden?
In any case, how do we prevent this unexpected GroupDocs.Conversion behaviour?
Also, does it apply to any other formats besides Excel?
Unhandled Exception: GroupDocs.Conversion.Exceptions.CorruptOrDamagedFileException: Cannot convert. The file is corrupt or damaged. Access to the path 'c:\Users\<userid>\Documents\My Music' is denied. ---> System.UnauthorizedAccessException: Access to the path 'c:\Users\<userid>\Documents\My Music' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.Directory.GetFiles(String path)
at .(String , Boolean, ArrayList )
at .(String , Boolean, ArrayList )
at Aspose.Cells.FolderFontSource.wptgtrv5mkbpn63zvxmf7wtbmdbbbr78 ()
at Aspose.Cells.IndividualFontConfigs.()
at **Aspose.Cells.IndividualFontConfigs.SetFontFolders**(String[] fontFolders, Boolean recursive)
at .(SpreadsheetLoadOptions , String[])
at . ()
at ()
--- End of inner exception stack trace ---
at ..(Exception )
at System.AggregateException.Handle(Func`2 predicate)
at .(CancellationToken )
at GroupDocs.Conversion.Converter.(CancellationToken )
at GroupDocs.Conversion.Converter.Convert(String filePath, ConvertOptions convertOptions, CancellationToken cancellationToken)
at NETFrameworkGroupDocs.Program.Main(String[] args) in C:\Projects\NETFrameworkGroupDocs\NETFrameworkGroupDocs\Program.cs:line 297