Hi Abhishek,
Hi Abhishek,
Hi Kashif,
Hi Abhishek,
Hi Kashif,
Hi Abhishek,
Thank you for sharing the sample file. We tried reading your sample MPP file with the hotfix version shared with you earlier but we still didn’t get any project reading exception. The project loads fine and we were able to read its properties and save it back without any issues. The sample project used at our end is attached for your reference. Please check if you are able to observe the exception in the attached project. If the issue still persists at your end, please create a similar console application project and share with us to investigate the issue further and assist you appropriately.
Hi Kashif/Team,
Hi Abhishek,
I have tried this scenario by creating a sample project with a resoucre having name value null. I am afraid that no such exception is raised and this line of code works fine. Could you please send us a sample project file for our testing here?
I tried with the following sample code and attached project file.
Project proj = new Project(@"NullResource.mpp");
ChildTasksCollector collector = new ChildTasksCollector();
TaskUtils.Apply(proj.RootTask, collector, 0);
foreach (Aspose.Tasks.Task tsk in collector.Tasks)
{
foreach (Aspose.Tasks.ResourceAssignment ass in tsk.Assignments)
{
Resource rsc = ass.Get(Asn.Resource);
string Name = rsc.Get(Rsc.Name);
if (!string.IsNullOrEmpty(ass.Get(Asn.Resource).Get(Rsc.Name)))
{
string OwnerNm = ass.Get(Asn.Resource).Get(Rsc.Name);
}
}
}
The issues you have found earlier (filed as TASKSNET-1723) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.