I am getting error “Valid values are between 0 and 65535, inclusive.\r\nParameter name: codepage” while editing body of MapiMessage. I have set the body property using SetProperty method which is successful. After it I want to edit property using Body attribute but getting this exception.
Stack trace
at System.Text.Encoding.GetEncoding(Int32 codepage)
at #=zWJ9$UCARMZYP1W22mnjvZLcQSHpL.#=zgtDnvw4=(Int32 #=zw1QjV4dYsD66wdLnlg==)
at Aspose.Email.Mapi.MapiMessageItemBase.get_BodyType()
at #=zQNs9zG_gKDfi_Cv5XOyPoc8=.#=zcQntOMu_PFM7(MapiMessageItemBase #=zTBm4fO8=, String #=zJlmDJWB3TlAD)
at #=zQNs9zG_gKDfi_Cv5XOyPoc8=.#=zHKRZXF5YJ34k(MapiMessageItemBase #=zTBm4fO8=)
at Aspose.Email.Mapi.MapiMessageItemBase.SetBodyContent(String content, BodyContentType contentType, Boolean compression)
at Aspose.Email.Mapi.MapiMessageItemBase.SetBodyContent(String content, BodyContentType contentType)
at Aspose.Email.Mapi.MapiMessageItemBase.set_Body(String value)