Update Fields & Page Layout in Word Document using C# .NET - Manage Master Value already Initialized Exception

Hi Aspose team,

We’ve found an issue with saving to stream and re-opening document from the example:

Aspose_SaveException.zip (392.4 KB)

Could you please investigate?

Thanks,
Mateusz

@acturisaspose,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-19633. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

Has there been any progress?

@acturisaspose,

Unfortunately WORDSNET-19633 is not resolved yet. We have completed the analysis of this issue but I am afraid, the implementation of this issue has been postponed till a later date. There are no estimates available at the moment. We will inform you via this thread as soon as this issue will be resolved in future. We apologize for your inconvenience.

hi, any updates? Is there a reason why this has been postponed? are you able to offer a viable workaround?
thanks,
Marcin

@acturisaspose,

I am afraid, there is no workaround available at the moment. But, we will inform you here as soon as we will have any update about it. Sorry for the inconvenience.

@acturisaspose,

While you are waiting for a fix, you may delete the comment inside the IF field as a workaround. Please see attached modified document and try running the following code.

Code:

Document doc = new Document("E:\\Aspose_SaveException\\modified.docx");
doc.UpdatePageLayout();
doc.UpdateFields();
doc.Save("E:\\Aspose_SaveException\\20.6.docx");

The issues you have found earlier (filed as WORDSNET-19633) have been fixed in this Aspose.Words for .NET 23.4 update also available on NuGet.