Hi,
We are facing an issue while reading a project file which was saved using the version 14.0.476.1000. We don't see that issue if we are using the version 14.0.6129.5000. Attached is the file that has issues.
Thanks
Subbu
Hi,
We are facing an issue while reading a project file which was saved using the version 14.0.476.1000. We don't see that issue if we are using the version 14.0.6129.5000. Attached is the file that has issues.
Thanks
Subbu
The error that we have is
Exception Message: Project reading exception.
Inner Exception: Index was outside the bounds of the array.
Hi Subbu,
Thanks for writing to Aspose.Tasks for .NET support team.
I am afraid to inform that I could not re-produce the issue here. I used following code to read your sample file and it displayed tasks information successfully without any error. Could you please test the following code and let us know your feedback?
Project prj = new Project(“project1_14_06_2013_1347PM_critical path_baseline.mpp”); // Open new blank template
//Declare ChildTasksCollector class object
ChildTasksCollector collector = new ChildTasksCollector();
//Use TaskUtils to get all children tasks in RootTask
TaskUtils.Apply(prj.RootTask, collector, 0);
//Parse all the recursive children
foreach (Task tsk in collector.Tasks)
{
Console.WriteLine(tsk.Name + " : " + tsk.Wbs);
Console.WriteLine("Start : " + tsk.Start.ToShortDateString());
Console.WriteLine("Finish : " + tsk.Finish.ToShortDateString());
}
I used VS 2008, C# .NET, Aspose.Tasks for .NET 5.5.0 , .NET 3.5 framework and Windows 7.