Using Aspose.Email 1.4, Pst.FolderInfo.GetContents() throws this exception:
Unable to read contents of MAPI folder 'DPW-AmerisSoft' (System.InvalidOperationException: Could not read messages in folder ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.BitConverter.ToInt32(Byte[] value, Int32 startIndex)
at System.BitConverter.ToUInt32(Byte[] value, Int32 startIndex)
at ?...ctor(Byte[] , FileFormatVersion )
at ?...?.( )
at ?...?.( , UInt64 )
at ?...?.( , UInt64 )
at ?...?.(UInt64 )
at ?..(? )
at ?.?.(? )
at ?.?..ctor(? , ? )
at ?.?.?(? )
at ?....MoveNext()
at ?..??(FolderInfo )
--- End of inner exception stack trace ---
at ?..??(FolderInfo )
at Aspose.Email.Outlook.Pst.FolderInfo.GetContents()
This error occurs while traversing the hierarchy of the Old_ArchiveANSI.pst file I recently sent you.
Thank you,
Rob W