Rgb(0- 0- 0) is not a valid value for Int32 on MailMessage.Load

Hi,


I get a System.Exception “rgb(0, 0, 0) is not a valid value for Int32” on MailMessage.Load with the attached message file. See the exeception info below.

In Outlook the file is opened correctly. Is there something wrong with the message or do I need to change my code?

We use Aspose.Email for .NET 6.9.0 (9/9/2016)

Regards
Andreas Ruge

System.Exception was unhandled by user code
HResult=-2146233088
Message=rgb(0, 0, 0) is not a valid value for Int32.
Source=System
StackTrace:
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 #=qShCBx6gHbzKNiEUuRH1JzclFmL92l$PzjJwoWgQIEjrJiG5BNti8txgZjhrvxzp6.#=qshAWbzpj0KDps2d0aNMsTA==(String #=qm4eF2o$RXh65wksOXDyLyg==)
at #=qShCBx6gHbzKNiEUuRH1JzclFmL92l$PzjJwoWgQIEjrJiG5BNti8txgZjhrvxzp6.#=qCXctxVS79Cj_8p0yEz4hXnfkfHwSIy$YTqt8m0U_HEw=(String #=qVIbz7rGm1AspIKNx8xQtIw==, String #=qLFBhHgbEgNJPoFOFFTYQ_Q==, StringBuilder #=qsM8WdjfvC7REGw0or$yEnw==)
at #=qShCBx6gHbzKNiEUuRH1JzclFmL92l$PzjJwoWgQIEjrJiG5BNti8txgZjhrvxzp6.#=qQ$UlFnGRAMTqcLjA0PxoNg==(String #=qe0_2PbV8VwUhQYAqQKvl0A==)
at #=qShCBx6gHbzKNiEUuRH1JzclFmL92l$PzjJwoWgQIEjrJiG5BNti8txgZjhrvxzp6.#=qo7SvM_jNSe1Z8L1siOOapw==(String #=qC6wXxqx5EuY4bf7Gx29qzQ==)
at #=qt9hOTNxcBC3HeKtbP9GTzv56QThFJKhT7PRIfiFjf2I=.#=q4WbqTWqnHhU1ArRcwASzqs1$c$U0$BljM9X4FSU6Tw0=(String #=qC6wXxqx5EuY4bf7Gx29qzQ==)
at Aspose.Email.Outlook.MapiMessageItemBase.#=q4p41kFT9Z_axaISeK8JI3A==()
at Aspose.Email.Outlook.MapiMessageItemBase.get_BodyType()
at Aspose.Email.Outlook.MapiMessageItemBase.get_Body()
at Aspose.Email.Outlook.MailMessageInterpretor.LoadMessageBodyText(MailMessage mailmessage, MapiMessage mapiMessage)
at Aspose.Email.Outlook.MailMessageInterpretor.LoadMessageBody(MailMessage mailmessage, MapiMessage mapiMessage)
at Aspose.Email.Outlook.MailMessageInterpretor.Interpret(MapiMessage mapiMessage)
at Aspose.Email.Mail.MailMessage.#=q1qrYKBKwSOBaFrxni34xlg==(Stream #=qvbMq_iGkiKD0mYR$7lzWvg==, MsgLoadOptions #=qjMcb3iJTvAzz14_U7T9wKQ==)
at Aspose.Email.Mail.MailMessage.#=qXfnRi634rnjnZbGDdmKvv$3fbz6xewLG2aPAuReUF0g=(Stream #=qvbMq_iGkiKD0mYR$7lzWvg==, LoadOptions #=qjMcb3iJTvAzz14_U7T9wKQ==)
at Aspose.Email.Mail.MailMessage.Load(Stream stream)
at Aspose.Email.Mail.MailMessage.Load(String fileName)
at DDiAsposeHelper.AsposeMessage…ctor(String fileName) in D:\Workspaces\Development\3.x\iProducts\Source\Extensions\AsposeHelper\DDiAsposeHelper\AsposeMessage.cs:line 29
at DDiAsposeHelper.AsposeHelper.OpenMessage(String inputFileName) in D:\Workspaces\Development\3.x\iProducts\Source\Extensions\AsposeHelper\DDiAsposeHelper\AsposeHelper.cs:line 103
InnerException:
HResult=-2146233033
Message=Input string was not in a correct format.
Source=mscorlib
StackTrace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.ComponentModel.Int32Converter.FromString(String value, NumberFormatInfo formatInfo)
at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
InnerException:



Hi,


Thank you for writing to Aspose support team.

This issue is reproduced and logged under Id: EMAILNET-38498 for further investigation by the product team. You will be automatically notified once any update is received in this regard.

Hi,


We released our software to the client and on the client side got more of these error. Maybe they will help getting the issue fixed.

The file “Re (22321973) pro forma afspraak.msg” gives error: "<span style=“font-size:11.0pt;font-family:“Calibri”,sans-serif;mso-fareast-font-family:
Calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:NL;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>
grey is not a valid value for Int32"
The file “RE schadenummer 1510234 uw referentie 5-ZLG-35.msg” gives error: "#33 3333 is not a valid value for Int32"

The funny think is that we can not reproduce this in our own environment, only on the client side. You know an explanation for that?

Regards
Andreas Ruge

Hi Andreas,


We have tested both the message files at our end with the latest version of the API and were not able to reproduce the problem at our end. Could you please confirm that the latest version of the DLL is provided with the deployed software? Please share more details about client environment with us like the OS and .NET framework used.

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


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