Using Aspose.Tasks 5.5, opening the attached project file will cause a TasksReadingException with an inner index out of range exception. Can you investigate why this is happening?
Aspose.Tasks.TasksReadingException : Project reading exception.
at .a.Read(Project , Stream ) at Aspose.Tasks.ProjectReader.Read(Stream stream) at Aspose.Tasks.ProjectReader.Read(String filename)
[Base Exception] System.IndexOutOfRangeException: Index was outside the bounds of the array. at ..(Byte[] , Int32 , Int32 ) at ..Read(Calendar , Hashtable , Byte[] , Byte[] , ArrayList ) at ..() at .a.Read() at .a.Read(Project , Stream )
Repro code:
public void Test(string sourcePath)
{
try
{
var reader = new ProjectReader();
var project = reader.Read(sourcePath);
Console.WriteLine(“Opened project " + project.Name + " successfully”);
}
catch (Exception ex)
{
Console.WriteLine("Unable to load project file " + ex.GetType().Name + ": " + ex.Message);
}
}