Tasks are not displayed when opening generated mpp file (C#)

Version : 18.7
MS-Project 2010

capture-04.PNG (58.9 KB)
capture-03.PNG (64.7 KB)

The generated mpp file is empty when I open it. I would have to click on “Grant Diagram” once to see the tasks. It seems the file is badly formated and MS-Project fix it when I click on the button because he ask me to save changes when leaving.

Thanks for help.


Can you please try to use latest 19.3 on your end and If there is still issue then please share working sample code along with generated MPP file so that we may further investigate to help you out.