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?