Project reading exception 2010

Hi ,

I have created a sample MPP file in MS Project 2010. But while reading this I am getting "Project Reading Exception". For your information, we are using Aspose.Tasks 5.1.0.0. Find the attached MPP file for your reference.

I unable to attach the MPP format file. So I changed to extension to "txt". Please just change that extension to mpp and try to read.

Please provide the solution as early as possible.

Regards,

Krishnamraju

Hi Krishnamraju,

Thanks for writing to Aspose.Tasks support team.

I have tried to re-produce the scenario using Aspose.Tasks for .NET 6.0.0 but am afraid to inform that no exception is raised. Could you please give a try to the following code using the latest release and let us know your feedback?

static public void ReadTasks()
{
Project prj = new Project("Test.mpp");

// Create a ChildTasksCollector instance
ChildTasksCollector collector = new ChildTasksCollector();

// Collect all the tasks from RootTask using TaskUtils
TaskUtils.Apply(prj.RootTask, collector, 0);
// Parse through all the collected tasks
foreach (Task task in collector.Tasks)
{
Console.WriteLine("Task Name : " + task.Name);
Console.WriteLine("Start : " + task.Start.ToShortDateString());
Console.WriteLine("Finish : " + task.Finish.ToShortDateString());
}
}

Output of the above mentioned code is attached here fore your reference. Please feel free to write us back if you have any other query in this regard.