Hello,
I am trying to loop through the emails in a NSF file. using EnumerateMessages() and it is throwing the ‘Index was outside of the bounds array’ exception.
Code:
using (NotesStorageFacility nsf = new NotesStorageFacility(fi.FullName))
{
try
{
foreach (MailMessage eml in nsf.EnumerateMessages())
{
emlCount++;
}
}
catch (Exception ex)
{
Console.Writeline(fi.FullName + ": " + ex.Message);
}
finally
{
nsf.Dispose();
}
}
Using Aspose.Email v21.1.1
Stack trace:
at #=z7KViMIi8j3uywo6UQ5$U1wI_0PwfNeBVYQ==…ctor(Byte[] #=zf9sWXEI=)
at #=zLzal_mBZwSFChgpA1FmlsaRHCu2kuJhXKA==.#=z$cyJo2kNP3LjxDJeYQ==(#=z8n_e3IU_UJvLVENGTgp59I6lJlgNCkx39A== #=zWXBnFd3ZCM3z)
at #=zLzal_mBZwSFChgpA1FmlsaRHCu2kuJhXKA==.#=zL1$$c54=(Int32 #=zCwUj4D0=)
at #=zLzal_mBZwSFChgpA1FmlsaRHCu2kuJhXKA==.#=z_LbFvZWmStJN.MoveNext()
Thanks in advance.
Wynne