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

Free Support Forum - aspose.com

ArgumentOutOfRangeException on MapiMessage.FromFile()

Hi, I am implementing Aspose in an application that extracts metadata from emails and writes it out to a database. I am getting an ArgumentOutOfRangeException on this line (this is C#):


var x = MapiMessage.FromFile(filePath);

“filePath” in this case is a string with a file path to an email in a file server. I verified that the path is legit, the .MSG file is there, and it opens just fine with Outlook. Any idea what my likely issue is here? I can’t just suppress this one, I have to handle it.
Thanks!
Jackson Kisling

Hi Jackson,


Thank you for writing to Aspose support team.

It seems to be a specific issue with the source MSG file and needs further investigation. Could you please share your sample MSG file with us for analysis here? It will help us to analyze the problem and provide assistance accordingly.