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

Free Support Forum - aspose.com

Exception when trying load EML file (System.IndexOutOfRangeException)


I got an issue trying to load some eml files, the exception message is:

--System.IndexOutOfRangeException: Index was outside the bounds of the array.

I am using the latest version of Aspose.Email.

I have one eml file, if you needed just let me know.

Please if there is something that you could do to fix this I'll really apreciate.


Hi Gerardo,

Thanks for writing to Aspose.Email support team.

Please send us the sample EML file as it will help us to analyze the problem and assist you as soon as possible.

Your patience and cooperation is highly appreciated.

Hi Kashif,

I this line code use:

MailMessage message = MailMessage.Load(“example.eml”, MessageFormat.Eml);

Attached the example file.



Hi Gerardo,

Thanks for providing supporting material.

I have analyzed it and reproduced the System.IndexOutOfRangeException successfully by loading the EML. I have passed the information to our development team and will write back here as soon as some feedback is received from the developers.

This issue is logged in our issue tracking system as NETWORKNET-33517.

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

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