We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Outlook MapiMessage.FromFile issue - index out of range exception opening valid file


We are using Aspose Email in our product and have run into an issue reading an email message (attached in the zip file) using Aspose.Email.Outlook.mapiMessage.FromFile(string filename);

MapiMessage msg = MapiMessage.FromFile(file.FullName);

The exception is thrown in your dll:

(PID=1524) System.IndexOutOfRangeException:Index was outside the bounds of the
at ‘.‘.(Byte[] src, Byte[]&
at ‘..•(Byte[] , IMapiPropertyContainer )
‘..•(IMapiPropertyContainer , , – )
Aspose.Email.Outlook.MapiMessage.FromFile(String path)

The email message is valid and can be opened in Outlook. Can you try using our attached file in one of your test programs and tell us if there’s a work around or if the issue has been fixed in a later version.


Hi DL,

I was able to reproduce this issue at my end using the latest version of Aspose.Email for .NET 3.9.0 and have logged it as NETWORKNET-34304 in our bug tracking system for further investigation by our development team. We’ll update you here once there is a fix version available for this issue.

We regret the inconvenience caused to you.

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

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.