Sicos1977 / MSGReader

C# Outlook MSG file reader without the need for Outlook
http://sicos1977.github.io/MSGReader
MIT License
478 stars 168 forks source link

ArgumentException opening a specific MSG-file (appointment) #219

Closed rboen closed 4 years ago

rboen commented 4 years ago

Describe the bug While creating a message instance of the attached msg-File via Storage.Message(stream) a ArgumentException is raised.

System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.

at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.BitConverter.ToInt32(Byte[] value, Int32 startIndex) at MsgReader.Outlook.Storage.MapiTagMapper.GetMapping(IEnumerable`1 propertyIdents) at MsgReader.Outlook.Storage.Message.LoadStorage(CFStorage storage)

Additional context

rboen commented 4 years ago

TEst (2).zip

Sicos1977 commented 4 years ago

This packages fixes your error --> https://www.nuget.org/packages/MSGReader/3.7.26