Error while exporting .mpp files in Aspose.Tasks.ProjectWriter.Write

Hello,

We are facing an exception while creating an MPP file from a data set retrieved from database. Code works fine if there is no data - that is, if an empty file is created. Code fails when there is some data to be written into mpp files. PFB Error message and stack trace:

  • Message: Project writing exception.
  • Stack Trace:
    at šˆ.ˆ.Write(Project , Stream )
    at Aspose.Tasks.ProjectWriter.Write(Project project, Stream output, TasksDataFormat fmt)

@Arun_Kamal,
could you please attach runnable example along with template file (if any) so we can reproduce the issue?