ReplyMessageBuilder.buildresponse fails while building a response if attachments are present, even when AdditionMode is set to attachment.
CODE
ReplyMessageBuilder builder = new ReplyMessageBuilder();
builder.ReplyAll = true;
builder.AdditionMode = OriginalMessageAdditionMode.Textpart;
builder.AdditionMode = OriginalMessageAdditionMode.Attachment;
MapiMessage replyMsg = builder.BuildResponse(MapiMessage.FromStream(new MemoryStream(objFileData))); Code Breaks at this point
STACKTRACE
at System.Text.Encoding.GetBytes(String s)
at Aspose.Email.ReplyMessageBuilder.BuildResponse(MapiMessage msg)
at Attachedfile.LoadExemptionMessage(Int64 exemptionId, Int32 memoId, Int32 msgMode) in c:\DMS\PROJECTS\DMS-MAY2020\Development\IBCWeb\DealManagement\Attachedfile.aspx.cs:line 255
Exception: String reference not set to an instance of a String. Parameter Name: s