- Home
- Forum
- ASP.NET MVC - EJ 2
- Null reference exception opening doc with newer dll version
Null reference exception opening doc with newer dll version
I am encountering a NullReferenceException when trying to open a .docx file using the latest version of Syncfusion (31.1.22).
Here is the exception message I get:
System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseEditableRangeStart(XmlReader reader, ParagraphItemCollection paraItems)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseParagraphItems(XmlReader reader, ParagraphItemCollection paraItems, String endnode, IOfficeMathRunElement mathRunElement, Boolean isMappedPictureContentControl)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseTableCell(XmlReader reader, WTableCell tableCell, Dictionary`2 cellGridSpan)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseTableRow(XmlReader reader, WTableRow tableRow, Boolean& isTableCellWidthDefined, Dictionary`2 cellGridSpan)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseTableValue(XmlReader reader, WTable table)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.Parse2007TextboxContent(XmlReader reader, WTextBody textBody)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseTextbox(XmlReader reader, Shape shape)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.Parse2007Shape(XmlReader reader, Shape shape)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseShape(MemoryStream shapeStream, MemoryStream drawingStream)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseShape(XmlReader reader, ParagraphItemCollection paraItems, MemoryStream drawingStream, MemoryStream shapeStream, ParagraphItem choiceItem)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseRunValues(XmlReader reader, ParagraphItemCollection paraItems, IOfficeMathRunElement mathParaItem, Boolean isMappedPictureContentControl, Boolean isFromBody)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseParagraphItems(XmlReader reader, ParagraphItemCollection paraItems, String endnode, IOfficeMathRunElement mathRunElement, Boolean isMappedPictureContentControl)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseBody(XmlReader reader, IEntity entity, Boolean isRunElementTextBody, Boolean isFromDocument, Boolean isMappedPictureContentControl)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseDocument(Stream stream)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseDocument(Package wordPackage, Boolean isFlatOPC)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.Read(WordDocument document, Boolean isFlatOPC)
à Syncfusion.DocIO.DLS.Convertors.DocxParser.Read(Stream docStream, WordDocument document)
à Syncfusion.DocIO.DLS.WordDocument.OpenDocx(Stream stream)
à Syncfusion.DocIO.DLS.WordDocument.OpenInternal(Stream stream, FormatType formatType, String password)
The same file opens without any issues when using version 28.2.5 of Syncfusion.DocIO.
Could you please let me know if this is a regression bug or if there are any changes required in the way the document should be handled with the newer version?
Thank you,
Attachment: Lettre_I_47bba2b3.docx
Hi Need solutions,
We have reproduced the reported issue “NullReferenceException occurs while
opening a word document” in our end. We will validate this issue and update
you with more details within 2 days.
Regards,
Kathiresan.
Hi Need solutions,
We have confirmed that the reported issue with “NullReferenceException
thrown for Editable Ranges during opening of DOCX format document” is a defect
and we have logged a defect report. We will include the fix for this defect in
our weekly NuGet release, which is estimated to be available on mid of October.
The status of this bug can be tracked through the below link:
NullReferenceException thrown for Editable Ranges during
opening of DOCX format document in ASP.NET Core | Feedback Portal
Disclaimer: Inclusion of this solution in the weekly release may change due to
other factors including but not limited to QA checks and works
reprioritization.
Regards,
Kathiresan.
Hi,
Thank you for the update.
We’ll keep an eye on the upcoming NuGet release.
Reg
Hi Need solutions,
We have included the bug fix for the reported issue “NullReferenceException
thrown for Editable Ranges during opening of DOCX format document” in
our Essential Studio® 2025 Volume 3 SP 1 Release. We are glad to
announce that our Essential Studio® 2025 Volume 3 SP 1 Release v31.2.2 is
rolled out and is available for download under the following link.
Essential
Studio® 2025 Volume ... | Announcements Forums | Syncfusion®
Root cause of the issue:
The provided document contains a editable ranges within group shape. During
parsing, it was not handled properly for shape, which leads to the reported
issue.
Please use the below link to download our latest NuGet:
Syncfusion.DocIO.Net.Core
31.2.2
The status of this bug can be tracked through the below link:
NullReferenceException
thrown for Editable Ranges during opening of DOCX format document in ASP.NET
Core | Feedback Portal
We thank you for your support and appreciate your patience in waiting for this
release. Please get in touch with us if you require any further assistance.
Regards,
Keerthana.
Hi Keerthana,
Thank you for the update and for addressing the issue in the latest release.
Could you please confirm if there are any plans to include this fix in the Syncfusion.DocIO.AspNet.Mvc5 package as well? We are currently using that package in our project and would like to know when the fix will be available there.
Thanks again for your assistance and for the detailed follow-up.
Regards,
Need solutions
Hi Need solutions,
We would like to inform you that the fix has also been included in the Syncfusion.DocIO.AspNet.Mvc5
package. You can update to the latest version of this package to receive the
fix.
Please use the below link to download our latest NuGet:
Syncfusion.DocIO.AspNet.Mvc5
If you need any assistance with upgrading or have further questions, please
feel free to reach out.
Regards,
Kathiresan.
If you need any assistance with upgrading or have further questions, please feel free to reach out. run 3
- 7 Replies
- 4 Participants
- Marked answer
-
NS Need solutions
- Oct 3, 2025 07:17 AM UTC
- Oct 29, 2025 06:34 AM UTC