We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception when comparing documents

Hi,

we get an ArgumentException was unhandled error when comparing two documents:

An unhandled exception of type ‘System.ArgumentException’ occurred in Aspose.Words.dll

Additional information: The reference node is not a child of this node.

Example code:

            var lic = new License();
            lic.SetLicense(@"S:\Aspose.Total.lic");

            var docOld = new Document(@"S:\projekt cs\ims\src\Testing\DocExportTest\word\customerdocs\IMS-6781_DOC_COMPARE_REV_OLD.docx");
            var docNew = new Document(@"S:\projekt cs\ims\src\Testing\DocExportTest\word\customerdocs\IMS-6781_DOC_COMPARE_REV_NEW.docx");

            docOld.Compare(docNew, "author", DateTime.UtcNow);

Files are attached.

Kind Regards,
Daniel

files.zip (1.4 MB)

@Serraniel,

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-19317. 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.

The issues you have found earlier (filed as WORDSNET-19317) have been fixed in this Aspose.Words for .NET 20.4 update and this Aspose.Words for Java 20.4 update.