.NET 10 GroupDocs.Viewer GetBarcodeImage exception when converting .doc/.docx files to PDF

We’re encountering an issue when converting .doc/.docx files to PDF.

Error

System.TypeLoadException (HResult: 0x80131522)

Message: Method ‘GetBarcodeImage’ in type ‘…’ from assembly ‘GroupDocs.Viewer, Version=25.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’ does not have an implementation.

Source: GroupDocs.Viewer

Context

The project that references GroupDocs.Viewer 25.12.0.0 is targeting .NET 10.
We also tested GroupDocs.Viewer.CrossPlatform 25.12.0.0, but the issue persists.
Reviewing both packages, we noticed they depend on Aspose.BarCode 23.9.0.0.

Please advise on .NET 10 compatibility for these packages and whether the Aspose.BarCode dependency version could be contributing to this exception.

@Mastex.Software

Hi Cristina,

Sorry to hear that. I suppose that such exception occurs not with any input file of DOC/DOCX format, but only with some specific subset, where barcodes are present. Can you please share some (at least one) of these files? If these files contain private data, you can send them via mail message at denis.gvardionov@aspose.com

Second question: does your project, which uses GroupDocs.Viewer for .NET, has the references to any other GroupDocs or Aspose products?

With best regards and waiting for your reply,
Denis Gvardionov

Hi Denis,

Thank you for your answer!

The issue occurs with any doc/docx document and there is a reference to Aspose.Words.26.1.0.

L.E.: It seems the issue is fixed if we downgrade Aspose.Words to 25.12.0

1 Like

@Mastex.Software

That’s because GroupDocs.Viewer internally uses Aspose.Words, and Aspose.Words starting from 26.1 has changed public API regarding barcode processing. The GroupDocs.Viewer for .NET 26.1, that will be released on the next week, also uses Aspose.Words 26.1, so you will be able to revert the downgrade then.

With best regards,
Denis Gvardionov