ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.08k stars 237 forks source link

Execution error on server: could not load file or assembly PdfSharpCore #324

Open tfeloy opened 1 year ago

tfeloy commented 1 year ago

Hi, I added the PdfSharpCore library by Nuget into a .Net Core 3.1 project. We can use it from local environment correctly but after publishing and deploy the project to the testing environment on the server we get the following error message on execution time (when try to use the PdfSharpCore library):

Could not load file or assembly 'PdfSharpCore, Version=1.3.43.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

We verified that all dlls were imported into the server (PdfSharpCore.dll, SixLabors.Fonts.dll, SixLabors.ImageSharp.dll, ICSharpCode.SharpZipLib.dll). What are we doing wrong? Why is the Public Key Token null? Is the name of ICSharpCode.SharpZipLib dll, correct? Thanks in advance.