Free Support Forum - aspose.com

Error saving email as .Msg

Hi,


When attempting to save certain emails as .Msg we are recieving the following error:

grey is not a valid value for Int32.

at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at System.Drawing.ColorConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at System.Drawing.ColorTranslator.FromHtml(String htmlColor)
at #=qA$CWjfwALYripOzLOHZEhnwMMi2tqlYRhbuf0WhvILsKdzrvhwR0RX1rijXZ$xx_.#=qs3nwrwbHdnqLZXhz0NX2hA==(String #=qon7ZDi8tBI$KQ4ifidT10A==)
at #=qA$CWjfwALYripOzLOHZEhnwMMi2tqlYRhbuf0WhvILsKdzrvhwR0RX1rijXZ$xx_.#=q2gxxBbefBCFwRVU45ihLEDainuA9ZiiJzR1fCtZSEZI=(String #=qLWiDzlhqFK9Z3Vfw54_AsQ==, String #=q_CqwFZstjhihltYsvbgZ3A==, StringBuilder #=qHQ_4Gm13flmbS2I6Mp3e0g==)
at #=qA$CWjfwALYripOzLOHZEhnwMMi2tqlYRhbuf0WhvILsKdzrvhwR0RX1rijXZ$xx_.#=qoGCZDPbpepp44UcyxIw$QQ==(String #=qDLoVX6KJAQqi_WbPm57Law==)
at #=qA$CWjfwALYripOzLOHZEhnwMMi2tqlYRhbuf0WhvILsKdzrvhwR0RX1rijXZ$xx_.#=qLcgPpZr4aLv6scijy552KQ==(String #=qpXaRGTgeVCP6qk6g4qrwhA==)
at #=qt49W8hzilwotoN_TPn0yhKB9vNWRgnKioBjXdnt2Qr4=.#=qPR$1phqKYLetP6B6NJZZImsJ4bsMBcdNfJmrb66wXow=(String #=qpXaRGTgeVCP6qk6g4qrwhA==)
at Aspose.Email.Outlook.MapiMessageItemBase.#=q8r47wJ1gPhuaLa6C52unfQ==()
at Aspose.Email.Outlook.MapiMessageItemBase.get_BodyType()
at Aspose.Email.Outlook.MapiMessageItemBase.get_Body()
at Aspose.Email.Outlook.MapiMessage.#=qT0lqifmKwuqir_w6cd3UwFazTLgMbqYFvZmeIIq2o0E=(MailMessage #=q2mALJQaqWoPJ9UmpfvARjw==, MapiConversionOptions #=q2JfWnKK34VS3IA7citOIGg==)
at Aspose.Email.Outlook.MapiMessage.#=qZmY6QgnwK$VcMHKXoiqy4rIzpZP2Hbo$LUwRn9GwKeM=(MailMessage #=q33_FuX5DDrgjK3griz2QaA==, MapiMessage #=qIPH97n2xXnkRNk_HxPqKgg==, MapiConversionOptions #=q2JfWnKK34VS3IA7citOIGg==)
at Aspose.Email.Outlook.MapiMessage.#=qOuPX8pMvD3W$Cab5Lwh_Fg==(MailMessage #=q2mALJQaqWoPJ9UmpfvARjw==, MapiConversionOptions #=q2JfWnKK34VS3IA7citOIGg==)
at Aspose.Email.Outlook.MapiMessage.FromMailMessage(MailMessage message, MapiConversionOptions options)
at Aspose.Email.Mail.MailMessage.Save(Stream stream, SaveOptions options)
at Aspose.Email.Mail.MailMessage.Save(String fileName, SaveOptions options)

Saving these messages as .EML works, but when reloading the saved message and attempting to save it as .MSG the same error appears.

I have tried the following code:

try
{
msg.Save(fileName + “.msg”, SaveOptions.DefaultMsgUnicode);
}
catch (Exception ex)
{
msg.Save(fileName + “.eml”, SaveOptions.DefaultEml);
var msg2 = MailMessage.Load(fileName + “.eml”);
msg2.Save(fileName + “.msg”, SaveOptions.DefaultMsgUnicode);
}

I attached a sample EML

Best regards

Hi Johan,


Thank you for writing to Aspose Support team.

We were able to reproduce this issue at our end and have logged it as EMAILNET-38496 for further investigation and rectification at our end. We’ll update you here once there is some information available in this regard.

The issues you have found earlier (filed as EMAILNET-38496) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.