Hello all,
I am getting the following exception while trying to save an email with attachments.
Exception says the following.
Cannot get entity content stream because it is currently in use. Make sure to call the Close method on streams returned by MimeEntity.GetContentStream.
Rebex.Mime.MimeException: Cannot get entity content stream because it is currently in use. Make sure to call the Close method on streams returned by MimeEntity.GetContentStream.
at Rebex.Mime.MimeEntity.GetContentStream(Boolean writable)
at Rebex.Mail.Attachment.D(Boolean A)
at Rebex.Mail.MailMessage.WD(SQ A, AttachmentBase B, String C, String D)
at Rebex.Mail.MailMessage.SD(MailFormat A)
at Rebex.Mail.MailMessage.RD(Stream A, MailFormat B)
at Rebex.Mail.MailMessage.Save(String fileName, MailFormat format)
at XXXXXXX.Decryption.SecureMail.MailMessage.ToMime(String fileName)
I am getting the above exception while trying to save a Rebe.Mail.MailMessage.
Thanks.