We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TimeSpan Overflow when opening mpp file

Using Aspose.Tasks for .Net 8.4.1.0 with a 30 day trial license. Was able to open several of our sample mpp files and extract data but they did not have resource assignment data. When I tried to open a mpp file with resource assignment data I get a “TimeSpan overflowed because the duration is too long” error.


In the Exception the last 2 lines of the LogText are “Reading project’s resources finished.” followed by "Reading resource assignments started."

The exact line in the code that fails is:
prj = new Project(pathandfilename);
where prj is of type Project.

One of the resources in the project has work hours set to 1,000,000 which is assigned to a task with a duration of 1 day. When I delete this resource the file loads. I know this is an unusual case but it is one of our test files.

Is there a limit to how many hours can be assigned to a resource? Or is there a workaround for this?

Hi David,


Thank you for writing to Aspose support team.

This seems to be an un-expected behavior with MPP, as similar project in XML format is loaded fine. I have logged a ticket in our bug tracking system under Id: TASKS-34073. Therefore, you will be automatically notified, once any update is available in this regard.

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


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.