You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a new program with the following actions:
Create a new WiseJ application (Wisej 3 Web Application .NET Framework 4.8)
Upgrade the Wisej 3 NuGet package to 3.5.22.
Install the NuGet package PDFsharp 6.2.1.
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.
The reason why it works in a console app and not in a Wisej app is because of this line here
What this line does is that it essentially imports what is called a metapackage implicitly, named Microsoft.AspNetCore.App , and Microsoft.Extensions.Logging.Abstractions is part of it.
Hello Julie,
Yes, its works.. I didn’t know that the Microsoft.AspNetCore.App contains the Microsoft.Extensions.Logging.Abstractions.
Thank you.
Have a nice day
Activity
itg-assistant commentedon Jun 16, 2026
Julie (ITG) answered 2025-08-27 15:03:28 UTC
It's a dependency issue, not a Wisej issue.
The reason why it works in a console app and not in a Wisej app is because of this line here
What this line does is that it essentially imports what is called a metapackage implicitly, named Microsoft.AspNetCore.App , and Microsoft.Extensions.Logging.Abstractions is part of it.
To fix it, add this to web.config:
itg-assistant commentedon Jun 16, 2026
Vincent Pfammatter answered 2025-08-28 06:42:50 UTC
Hello Julie,
Yes, its works.. I didn’t know that the Microsoft.AspNetCore.App contains the Microsoft.Extensions.Logging.Abstractions.
Thank you.
Have a nice day