We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

Conversion gets stuck processing certain EML file in .NET

Conversion seems to get stuck when converting the attached file:

I aborted file conversion after 20 minutes.
GroupDocs.Conversion 21.9.1 was used with .NET Framework 4.7.2.
The following code was used to reproduce the issue:

            var possibleLoadOptions = Converter.GetPossibleConversions(Path.GetExtension(documentPath).ToLower());
            var loadOptions = possibleLoadOptions.LoadOptions;

            var options = new ImageConvertOptions()
                Format = ImageFileType.Png,
                PageNumber = 1,
                PagesCount = 1,
                Width = 256

            using (var conv = new Converter(documentPath, () => loadOptions))
                string filePath = "outputConversion{0}.png";
                Contracts.SavePageStream getPageStream = page => new FileStream(string.Format(filePath, page), FileMode.Create);
                conv.Convert(getPageStream, options);

This bug is probably related to that one:

My guess is, that it ignores the “ConvertOwned” loading option in the EmailLoadOptions, which is set by the GetPossibleConversions call.


This issue is under investigation with ticket ID CONVERSIONNET-4905. You’ll be notified in case of any update.

1 Like