Object reference error when comparing documents

I am following this KB https://support.syncfusion.com/kb/article/13704/how-to-compare-two-word-documents-and-highlight-differences-using-c-in-aspnet-core

Getting object reference error here 

// Compare the original and revised Word documents.

originalDocument.Compare(revisedDocument);


I am using 

Syncfusion.DocIO.Net.Core(26.1.42) version



1 Reply

DS Dharanya Sakthivel Syncfusion Team July 18, 2024 09:51 AM UTC

Hi Mahesh,

We have checked the provided KB documentation and successfully tested the online sample without error on our end. We suspect the error may be due to specific elements in your input document. Kindly share your input document; this will allow us to analyze the problem further and provide you with a suitable solution.

Note: We only require your document to replicate the issue you are experiencing. Once we have investigated the issue, we will permanently delete the document from our end and will not share it with anyone. If your input document contains confidential information, you can email the document to us at support@syncfusion.com, mentioning the forum ID and title as the subject.


Regards,
Dharanya.



Loader.
Up arrow icon