We are getting an error internal to version 21.8 of Aspose.Tasks.dll when loading a particular .mpp file. The crash is in the Project(FileStream) constructor:
using (FileStream fs = File.OpenRead(fileName))
{
Project project;
try
{
project = new Project(fs);
}
Stack trace:
ERROR (System.OverflowException): TimeSpan overflowed because the duration is too long.
METHOD: System.TimeSpan Add(System.TimeSpan)
CLASS DEFINING MEMBER: System.TimeSpan
MEMBER TYPE: Method
SOURCE: mscorlib
STACK TRACE:
at System.TimeSpan.Add(TimeSpan ts)
at #=z6Vglf7z660JxceOJnp_J1uwuKM0q3azN$KQgUH8=.#=zP5s5n5kDEQlN(Task #=zzs22Anc=, #=zFuXHvRSyFnpA3s7WLXgY2hrmT1zbDGQvsp5vcAs= #=zKJlr79U=)
at #=z6Vglf7z660JxceOJnp_J1uwuKM0q3azN$KQgUH8=.#=zP5s5n5kDEQlN(Task #=zzs22Anc=, #=zQDE9NqRdNMt79_JXOXOheTUiAggeR_kmjkH151c= #=zj61ib0zLqhr1)
at #=zhCZHcmPLzqCRuuzI1si08ic56PoCeU_8CdJvFy4=.#=zM9uuvuA=(Task #=zzs22Anc=, #=zQDE9NqRdNMt79_JXOXOheTUiAggeR_kmjkH151c= #=zj61ib0zLqhr1, #=zi_s7JHwcON5rNEby_ind3QqAeCQJ4aE71Q== #=zM6y4bHNO0MuC, IDictionary2 #=zjdj4tSdpFPJOgdp$Iw==) at #=zbryjnOmLr10evgGLDzln0Z09_$iTH8sdmoTRcS4=.#=zN88Hom8=(IDictionary
2 #=zPwwVb_wM7p3IkbqCrg==)
at #=zjWjOfCTFPtpHd2FCm_328Kx0qUhEKWChNg==.#=zM9uuvuA=()
at #=zjWjOfCTFPtpHd2FCm_328Kx0qUhEKWChNg==.#=zM9uuvuA=(Project #=zNv4GQME=, Stream #=zWutzYU0=)
at #=zjWjOfCTFPtpHd2FCm_328Kx0qUhEKWChNg==.#=zM9uuvuA=(Project #=zNv4GQME=, Stream #=zWutzYU0=, Encoding #=zAY5Nof0=, ParseErrorCallback #=zfQIxU1y2$UsB)
at #=zfEj5am2OjksacN0Zi_vfRvk=.#=zM9uuvuA=(Stream #=zWutzYU0=, Project #=zNv4GQME=)
at Aspose.Tasks.Project.#=z9u5zKAau2cdN(Stream #=zWutzYU0=, ParseErrorCallback #=zfQIxU1y2$UsB, Encoding #=zAY5Nof0=, PrimaveraXmlReadingOptions #=ze33X9Bo=)
at Aspose.Tasks.Project…ctor(Stream stream)
TimeSpan Add overflow.zip (6.6 MB)