Aspose.Email.Outlook.MapiAttachment.Save() problem

We have an issue with Aspose.Email saving a MSG from a PST, where the MSG has a near zero byte attachment. For instance a MSG with an empty (or corrupt maybe) .doc file (~149bytes). Aspose.Email may not be saving the MSG correctly.

Extracting attachments from that specific MSG that Aspose has saved, throws this exception:

System.InvalidOperationException: The data of the attachment is empty.
at Aspose.Email.Outlook.MapiAttachment.Save(Stream stream)
at Aspose.Email.Outlook.MapiAttachment.Save(String filename)

This only happens when Aspose.Email saves the MSG file from the PST. If the MSG already exists on disk, Aspose.Email doesn't throw the exception.

The attached ZIP contains:

1) Enron Europe Risktrac Feed Summary 31 August 2001.msg - original MSG that can be opened in Outlook w/ empty .doc attachment

2) Enron Example.pst - PST containing only the above MSG

3) 000d2a68-e780-45a0-9283-92704061669e.msg - the MSG extracted and saved by Aspose.Email from the PST above

Thank you

1 Like

Hi Rob,


Thank you for bringing this to us with your sample files.

I am able to reproduce the said exception with latest version of Aspose.Email for .NET v1.3.0. This problem has been logged in our tracking system under ticket Id NETWORKNET-33132 for correction purposes.

As soon as we receive any updates on this, we will let you know here.

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


This message was posted using Notification2Forum from Downloads module by aspose.notifier.