Error occurs while loading an EML data either from a stream or a file as shown below:
mailMessage = new MailMessage();
mailMessage.Load(originalDataStream);
The same EML file can be opened by Outlook.
Rebex.Mail.MailException: Invalid TNEF message. ---> System.IO.EndOfStreamException: Unable to read beyond the end of the stream.<br>
at System.IO.BinaryReader.ReadByte()<br>
at ZjHgK.1Bb0QeZ.2fbsAmZ(BinaryReader , Int32 , Boolean , Boolean )<br>
at ZjHgK.1Bb0QeZ.1klNF2Z(BinaryReader , Boolean )<br>
at ZjHgK.1Bb0QeZ.gEHb0(BinaryReader )<br>
at ZjHgK.1Bb0QeZ.1v2ciGZ(Stream )<br>
at ZjHgK.1Bb0QeZ.1rsOcLZ(MailMessage , Boolean )<br>
at Rebex.Mail.MailMessage.1iiF1n(MimeEntity )<br>
--- End of inner exception stack trace ---<br>
at Rebex.Mail.MailMessage.1iiF1n(MimeEntity )<br>
at Rebex.Mail.MailMessage.1FQJIgZ(MimeMessage )<br>
at Rebex.Mail.MailMessage..ctor(MimeMessage message)<br>
at Rebex.Samples.MimeExplorer.MimeExplorer.itemOpen_Click(Object sender, EventArgs <br>e) in C:\\Rebex\\Samples\\vs2010-net-4.0\\Mail\\MimeExplorer_CS\\MimeExplorer.cs:line 263<br>
I appreciate any help/resolution. How can I upload the EML file that is causing this problem?
Sincerely,
Muhammed Inam, MsComS(USA)
applied technologies GmbH
phone: +49 (201) 8127 - 364
=========================================================================
applied technologies Gesellschaft für angewandte Informationstechnologien mbH
Kruppstrasse 82-100, 45145 Essen, Germany
Phone: +49 (201) 8127-334, Fax: +49 (201) 8127-346
Sitz der Gesellschaft: Essen, Handelsregister: Amtsgericht Essen HRB 15778
Geschäftsführer: Dipl.-Ing. Bernd Gerwert, Dietmar Leibecke, Dipl.-Ing. Daniel Saager
www.appliedtechnologies.de