Unable to install Aspose.Words.Shaping.HarfBuzz with Aspose.Words for .NET

Hello everyone,
Using the latest versions of Aspose DLL in our project, we (Ivalua company) encountered this error:
"Unable to load DLL ‘harfbuzz’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)".

The DLL used are:

  • Aspose.Words 20.1.0.0
  • Aspose.Pdf 20.1.0.0
  • Aspose.Words.Shaping.HarfBuzz 20.1.0.0
  • Aspose.Cells 19.12.0.0
  • Aspose.Slides 19.12.0.0

When Aspose.Cells and Aspose.Slides DLL are not used, there is no error.
I think these DLL are not compatible with the rest.
Please give us more information about this error.
Thank you in advance.

Mohamed.

StackTrace:
at .( , ITextShaperFactory )
at .( )
at .( )
at ​ .()
at .( ​ , Int32 , Int32& )
at .()
at .()
at ​ .()
at ​ .()
at …ctor( )
at .()
at .()
at . ()
at ​ .( ​ )
at ​ .( ​ )
at ​ .( ​ )
at .( )
at ​ .( , Int32 , Boolean )
at .()
at .( ​ , Int32 , Boolean , Boolean )
at .( )
at ​ .( ​ )
at .( , Boolean )
at .( )
at .( )
at ​ .( ​ )
at ​​ .( ​ )
at ​ .()
at ​ .()
at Aspose.Words.Document.UpdatePageLayout()
at . ()
at .( )
at .( , )
at . ()
at .( , [] , Boolean )
at Aspose.Words.MailMerging.MailMerge.( )

@mhamitouche

Please remove all old DLLs of Aspose.Words.Shaping.HarfBuzz from your application and install Aspose.Words.Shaping.HarfBuzz through NuGet. Hope this helps you.

Hello,
I can see that you have recently updated the DLL Aspose.Cells and Aspose.Slides (From version 19.12.0.0 to 20.1.0.0). Thank you.
However, you have not yet fixed the problem of the Platform target.

You will find attached a standalone application (Console Application) which allows you to reproduce the error I have.
Aspose.zip (160.7 KB)

When I have the following configuration, my code works fine:
32-bit Prefer.jpg (24.3 KB)

However, when I have this configuration, I have an error.
AnyCPU.jpg (27.3 KB)

Thank you in advance.
Mohamed.

@mhamitouche

We are investigating this issue and will get back to you soon.

Hello,
Thank you.

Mohamed.

@mhamitouche

Please note that AnyCPU + Prefer32 Bit = x86 platform. So, harfbuzz libraries must be taken from runtimes\ Win-x86 \native.

Please copy DLLs from “Aspose.Words.Shaping.HarfBuzz.20.1.0\runtimes\win-x86” to Debug folder to avoid this exception.

Hello,
Our Platform target is x64.
I fixed the problem by adding win-x64 DLLs.
Thank you for your help.

Mohamed.

@mhamitouche

Thanks for your feedback. It is nice to hear from you that your problem has been solved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

A post was split to a new topic: Unable to install Aspose.Words.Shaping.HarfBuzz