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.
Code:
var mem = new MemoryStream(File.ReadAllBytes(@“D:\Temp\DadostestesPrimanager\CronogramaErro.mpp”));
Project prj;
prj = new Project(mem);
var ret = new MemoryStream();
prj.Save(ret,SaveFileFormat.MPP);
Exception:
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.