PdfSharp conflict exception

0
0

Hello,

I create a new program with the following actions:

  1. Create a new WiseJ application (Wisej 3 Web Application .NET Framework 4.8)
  2. Upgrade the Wisej 3 NuGet package to 3.5.22.
  3. Install the NuGet package PDFsharp 6.2.1.
  4. Add the line “PdfDocument outputPDFDocument = new PdfDocument();” in the function Program.Main().

The solution compiles well but the creation of a instance of PdfDocument generates the following exception:

Could not load file or assembly ‘Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Te same process with a Console App (.NET Framework 4.8) project generates no exception.

What can I do to avoid this exception?

Best regards

Edit: Add solution files example zip.

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.