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: