Free Support Forum -

File corrupted after loading and saving using Aspose.Tasks (C# (31.5 KB)
Attached is an example Project file that becomes corrupt after saving with Aspose.Tasks 19.5 (and earlier versions).

Specifically… A “circular reference” appears in the saved file that was not present initially.


Can you please share source code along with environment details so that we may further investigate to help you out.

var stream = new FileStream(filePath, FileMode.OpenOrCreate);
var project = new Project(stream, new LoadOptions());
project.Save(newfilePath, SaveFileFormat.MPP);

What environment details?
Windows 10
32 GB Memory
8-Core, 16-Thread CPU


I have worked with the sample file shared and an issue with ID TASKSNET-3258 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

Somehow the latest task “Waterproofing and Drain Tile” and its predecessor Task 61 break the saving. We fixed the original file by resaving it in MS Project 2007. The fixed file is attached below.

Please, inform us if this solution is enough for (46.0 KB)

The issues you have found earlier (filed as TASKSNET-3258) have been fixed in this update.