Error Writing MPP File

I am trying to read and write a mpp file (attached).
I just load and try to save the file but I got an exception.
var mem = new MemoryStream(File.ReadAllBytes(@“D:\Temp\DadostestesPrimanager\CronogramaErro.mpp”));
Project prj;
prj = new Project(mem);
var ret = new MemoryStream();


Writing resource with UID=‘0’ started.
Writing resource fixed data started.
Writing resource fixed data finished.
Writing resource variable data started.
Writing resource variable data finished.
Writing resource baselines started.
A chave fornecida não estava presente no dicionário.

I forgot attach the (200.7 KB)


Thank you for writing to Aspose support team.

I have tried this sample code with attached MPP file using latest version Aspose.Tasks for .NET 18.4. No issue is observed and code runs successfully. You may please give it a try using latest version and share the feedback.