An unhandled exception of type 'GroupDocs.Comparison.Common.Exceptions.DocumentComparisonException' occurred in Groupdocs.Comparison.dll

I got the error as shown below when running sqk on a win 11 laptop with word file containing 529 pages, 8MB in size and running for about 30 minutes then ending with an error.

image.png (25.8 KB)

image.png (3.1 KB)

This is Device specifications and Windows specifications

image.png (17.9 KB)

My code

    static void Main(string[] args)
    {
        Logger logger = new Logger("LogFile_Console");

        Stopwatch stopwatch = new Stopwatch();
        Console.WriteLine("Start comparing...");
        stopwatch.Start();

        string licensePath = @"C:\Users\TrucNV\Downloads\ConsoleApp_GroupDocs\ConsoleApp_GroupDocs\ConsoleApp_GroupDocs\GroupDocs.Comparison.NET.lic";
        License license = new License();
        license.SetLicense(licensePath);

        using (Comparer comparer = new Comparer(@"C:\Users\TrucNV\Downloads\240719 - Copy.docm"))
        {
            comparer.Add(@"C:\Users\TrucNV\Downloads\241018 - Copy.docm");

            CompareOptions compareOptions = new CompareOptions()
            {
                MarkChangedContent = true,
                DetectStyleChanges = true,
                ChangedItemStyle = new StyleSettings()
                {
                    FontColor = System.Drawing.Color.Yellow,
                    IsUnderline = true,
                    //HighlightColor = System.Drawing.Color.Yellow,
                },
                InsertedItemStyle = new StyleSettings()
                {
                    FontColor = System.Drawing.Color.Lime,
                    IsUnderline = true,
                },
                DeletedItemStyle = new StyleSettings()
                {
                    FontColor = System.Drawing.Color.Red,
                    IsStrikethrough = true,
                },
            };


            comparer.Compare("C:\\Users\\trucnv\\Downloads\\Trip.docx", compareOptions);
        }
        stopwatch.Stop();
        /// Lấy thời gian đã trôi qua
        TimeSpan elapsedTime = stopwatch.Elapsed;
        // Hiển thị thời gian thực hiện
        Console.WriteLine("Total time: " + elapsedTime.ToString());
        logger.Log("Total time: " + elapsedTime.ToString());

        Console.WriteLine($"Donee");
    }
1 Like

@FPT008

Please provide the following details so we can investigate the issue on our end:

  • The version of the GroupDocs.Comparison for .NET API you are using (e.g., 24.10, 24.11).
  • The source and target Word files. If the files are large, please consider uploading them to a cloud storage service like Google Drive and share the link here.

i tested on version 24.10 and 24.11 but it still get error @atir.tahir

@FPT008

Could you please also share the concerned files?

can you give me link storage cloud to i upload files @atir.tahir

@FPT008

Please upload files to Google Drive and share link here with us.

Laptop của my company cant access to google driver to upload file ;((( @atir.tahir

Data-error.zip (2.7 MB)

I send my data, which cause error as title @atir.tahir

data-error.zip (231.3 KB)

This is detail error data filtered

data_error.zip (231.6 KB)

We suspect this error is related to ‘follow link’ @atir.tahir

1 Like

@FPT008
Thanks for the source/target files. This issue is reproduced at our end. Therefore, we have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): COMPARISONNET-4258

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Please fix it quickly for us, because this bug affects my customer’s progress @atir.tahir

@trucnv

Please be aware that all free support tickets are handled on a first-come, first-served basis. We have recorded your issue, and it will be investigated. However, you can opt for our priority support to escalate the ticket.

@FPT008

The issue was fixed. You could find a hotfix version here