Hi,
I’m having issues reading an mpp file. I’m using latest version, at moment, of Aspose.Tasks (v9.3.0) and getting Aspose.Tasks.TasksReadingException when trying to read the file.
MS Project = MSP
Context:
I have a project created using MSP 2016. I have saved the project in file “2016.mpp” and then another clicked “…save as…” and created file “2016_saved_as_2007.mpp” (MS Project 2007).
Code to repro de issue (.mpp files attached):
var project2016 = new Project(“2016.mpp”); //NO ERROR
try
{
var project2007 = new Project(“2016_saved_as_2007.mpp”); //ERROR
}
catch (TasksReadingException ex)
{
Console.WriteLine(“Message:”);
Console.WriteLine(ex.Message);
Console.WriteLine(“Log:”);
Console.WriteLine(ex.LogText);
if (ex.InnerException != null)
{
Console.WriteLine(“Inner exception message:”);
Console.WriteLine(ex.InnerException.Message);
}
}
Log text:
Message:
Project reading exception.
Log:
Aspose.Tasks for .NET 9.3.0.0 version.
Reading project data in ‘MPP12’ format, created by ‘MSP2016’ started.
Reading project’s calendars information started.
Calendar with UID =‘1’ was read successfully.
Calendar with UID =‘2’ was read successfully.
Reading calendars finished.
Reading common project data started.
Reading common project data finished.
Reading WBS Code Definition started
Reading WBS Code Definition finished
Reading project’s outline codes started.
Reading project’s outline codes finished.
Reading task extended attribute definitions started.
Reading task extended attribute definitions finished.
Reading resources extended attributes definitions started.
Inner exception message:
Source array was not long enough. Check srcIndex and length, and the array’s lower bounds.
Question:
My customers work with different MSP versions (2007, 2010 and 2016).
1- Does Aspose.Tasks v9.3.0 supports backwards compatibility? This is files created on previous version of MSP.
2- Does Aspose.Tasks v9.3.0 supports .mpp files created with X version and saved as Y version? being X > Y.